Skip to content

Commit

Permalink
add eks manifests files
Browse files Browse the repository at this point in the history
Signed-off-by: amitamrutiya2210 <[email protected]>
  • Loading branch information
amitamrutiya committed Feb 20, 2024
1 parent 503dc43 commit 2e0d5f2
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 0 deletions.
35 changes: 35 additions & 0 deletions eks-manifests/backend/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions eks-manifests/backend/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: study-notion
13 changes: 13 additions & 0 deletions eks-manifests/backend/service.yaml
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions eks-manifests/frontend/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions eks-manifests/frontend/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: study-notion
13 changes: 13 additions & 0 deletions eks-manifests/frontend/service.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2e0d5f2

Please sign in to comment.