Ajouter deployment.yaml

This commit is contained in:
2026-04-01 15:46:03 +00:00
parent 1adf0da2fb
commit 38110d19fa

19
deployment.yaml Normal file
View File

@@ -0,0 +1,19 @@
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-k3s
spec:
replicas: 1
selector:
matchLabels:
app: hello-k3s
template:
metadata:
labels:
app: hello-k3s
spec:
containers:
- name: node-app
image: node:18-alpine
command: ["node", "-e", "require('http').createServer((req,res) => res.end('Hello K3s!')).listen(3000)"]