diff --git a/kuber/deployment.yaml b/kuber/deployment.yaml new file mode 100644 index 0000000..c43be2b --- /dev/null +++ b/kuber/deployment.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: node-app-deployment + labels: + app: node-app +spec: + replicas: 3 + selector: + matchLabels: + app: node-app + template: + metadata: + labels: + app: node-app + spec: + containers: + - name: node-app + image: anudeepreddys/aws_session:2.0 + ports: + - containerPort: 3000 +--- +apiVersion: v1 +kind: Service +metadata: + name: node-app-service +spec: + selector: + app: node-app + ports: + - protocol: TCP + port: 3000 + targetPort: 3000