diff --git a/eks-manifests/backend/deployment.yaml b/eks-manifests/backend/deployment.yaml new file mode 100644 index 0000000..0a7f331 --- /dev/null +++ b/eks-manifests/backend/deployment.yaml @@ -0,0 +1,35 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: backend + namespace: study-notion + labels: + app: backend +spec: + replicas: 2 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 25% + selector: + matchLabels: + app: backend + template: + metadata: + labels: + app: backend + spec: + containers: + - name: backend + resources: + limits: + cpu: "1" + memory: "500Mi" + requests: + cpu: "0.5" + memory: "200Mi" + image: amit2210/study-notion:backend + imagePullPolicy: Always + ports: + - containerPort: 4000 diff --git a/eks-manifests/backend/namespace.yaml b/eks-manifests/backend/namespace.yaml new file mode 100644 index 0000000..c17f584 --- /dev/null +++ b/eks-manifests/backend/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: study-notion diff --git a/eks-manifests/backend/service.yaml b/eks-manifests/backend/service.yaml new file mode 100644 index 0000000..1ef6ebb --- /dev/null +++ b/eks-manifests/backend/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: backend + namespace: study-notion +spec: + selector: + app: backend + ports: + - protocol: TCP + port: 90 + targetPort: 4000 + type: LoadBalancer diff --git a/eks-manifests/frontend/deployment.yaml b/eks-manifests/frontend/deployment.yaml new file mode 100644 index 0000000..f982883 --- /dev/null +++ b/eks-manifests/frontend/deployment.yaml @@ -0,0 +1,36 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend + namespace: study-notion + labels: + app: frontend + +spec: + replicas: 2 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 25% + selector: + matchLabels: + app: frontend + template: + metadata: + labels: + app: frontend + spec: + containers: + - name: frontend + image: amit2210/study-notion:frontend + resources: + limits: + cpu: "1" + memory: "500Mi" + requests: + cpu: "0.5" + memory: "200Mi" + imagePullPolicy: Always + ports: + - containerPort: 3000 diff --git a/eks-manifests/frontend/namespace.yaml b/eks-manifests/frontend/namespace.yaml new file mode 100644 index 0000000..c17f584 --- /dev/null +++ b/eks-manifests/frontend/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: study-notion diff --git a/eks-manifests/frontend/service.yaml b/eks-manifests/frontend/service.yaml new file mode 100644 index 0000000..467a47c --- /dev/null +++ b/eks-manifests/frontend/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: frontend + namespace: study-notion +spec: + selector: + app: frontend + ports: + - protocol: TCP + port: 80 + targetPort: 3000 + type: LoadBalancer