diff --git a/deployment.yml b/deployment.yml new file mode 100644 index 0000000..5c18562 --- /dev/null +++ b/deployment.yml @@ -0,0 +1,35 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: helloworld +spec: + selector: + matchLabels: + app: helloworld + replicas: 1 + template: + metadata: + labels: + app: helloworld + spec: + containers: + - name: helloworld + image: karthequian/helloworld:latest + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: helloworld +spec: + type: NodePort + selector: + app: helloworld + ports: + - name: client + protocol: TCP + port: 80 + nodePort: 32080 + selector: + app: helloworld