Ajouter deployment.yaml
This commit is contained in:
19
deployment.yaml
Normal file
19
deployment.yaml
Normal 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)"]
|
||||
Reference in New Issue
Block a user