Skip to content

Commit

Permalink
add eks-manifests file
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 be73d19
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 0 deletions.
58 changes: 58 additions & 0 deletions eks-manifests/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: v1
kind: Namespace
metadata:
name: study-notion

---

apiVersion: v1
kind: Service
metadata:
name: backend
namespace: study-notion
spec:
selector:
app: backend
ports:
- protocol: TCP
port: 90
targetPort: 4000
type: LoadBalancer

---

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
59 changes: 59 additions & 0 deletions eks-manifests/frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: v1
kind: Namespace
metadata:
name: study-notion

---

apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: study-notion
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: LoadBalancer

---

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

0 comments on commit be73d19

Please sign in to comment.