From 75c23233bfcc170ee376e0feaf84f10584413432 Mon Sep 17 00:00:00 2001 From: ANANYA DI <162156842+chandanagd@users.noreply.github.com> Date: Sun, 23 Feb 2025 17:45:46 +0530 Subject: [PATCH] Second commit --- .gitattributes | 2 ++ .gitignore | 1 + Deployment.yaml | 21 +++++++++++++++++++++ Service.yaml | 14 ++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Deployment.yaml create mode 100644 Service.yaml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/Deployment.yaml b/Deployment.yaml new file mode 100644 index 0000000..02a87b3 --- /dev/null +++ b/Deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: e-commerce-deployment + namespace: e-commerce-app-database + +spec: + replicas: 2 + selector: + matchLabels: + app: e-commerce + template: + metadata: + labels: + app: e-commerce + spec: + containers: + - name: e-commerce-container + image: 901953/e-commerce-app:app + ports: + - containerPort: 80 diff --git a/Service.yaml b/Service.yaml new file mode 100644 index 0000000..c274d62 --- /dev/null +++ b/Service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: e-commerce-service + +spec: + type: NodePort + selector: + app: e-commerce + ports: + - protocol: TCP + port: 5004 + targetPort: 80 + nodePort: 30202 \ No newline at end of file