From c8cd41b9ab29f9ac6be55986db9a2d8ba1cb4baa Mon Sep 17 00:00:00 2001 From: vijay shedge <vijay.shedge@niveussolutions.com> Date: Fri, 12 Jan 2024 15:58:49 +0530 Subject: [PATCH] k8s configs --- src/k8s/deployment.yaml | 19 +++++++++++++++++++ src/k8s/service.yaml | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/k8s/deployment.yaml create mode 100644 src/k8s/service.yaml diff --git a/src/k8s/deployment.yaml b/src/k8s/deployment.yaml new file mode 100644 index 0000000..f93e925 --- /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 0000000..7fef7ca --- /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 -- GitLab