From 4f6a1abb435f71c237e463506272290e06dea7ac Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 2 Feb 2023 10:12:49 +0000 Subject: [PATCH] environment test --- .k8s/deployment.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .k8s/deployment.yaml diff --git a/.k8s/deployment.yaml b/.k8s/deployment.yaml new file mode 100644 index 0000000..a231a4c --- /dev/null +++ b/.k8s/deployment.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nodeapp-deployment + labels: + app: nodeapp + type: front-end +spec: + template: + metadata: + name: nodejsapp-pod + labels: + app: nodejsapp + type: front-end + spec: + containers: + - name: nodejsapp-erp + image: "bharathirajatut/erp:1.0" + replicas: 1 + selector: + matchLabels: + type: front-end + +--- +apiVersion: v1 +kind: Service +metadata: + name: nodejs-service +spec: + selector: + app: nodejsapp + type: LoadBalancer + ports: + - protocol: TCP + targetPort: 3000 + port: 80 + nodePort: 30000 \ No newline at end of file