diff --git a/src/k8s/deployment.yaml b/src/k8s/deployment.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f93e9251009f99475a35545faea2cf3264c993e4 --- /dev/null +++ b/src/k8s/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: myapp +spec: + selector: + matchLabels: + app: myapp + replicas: 2 + template: + metadata: + labels: + app: myapp + spec: + containers: + - name: myapp + image: asia-south1-docker.pkg.dev/zippy-parity-410718/mytestrepo/mynodeimage + ports: + - containerPort: 3000 \ No newline at end of file diff --git a/src/k8s/service.yaml b/src/k8s/service.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7fef7ca342ae4b87e5d5d5fa0161b7b486380e5d --- /dev/null +++ b/src/k8s/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: myapp +spec: + selector: + app: myapp + ports: + - protocol: TCP + port: 3000 + type: LoadBalancer \ No newline at end of file