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