diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..b3f7ed3 --- /dev/null +++ b/deployment.yaml @@ -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)"]