Skip to content

Commit c7c0eee

Browse files
committed
Add resources
1 parent 5da5e65 commit c7c0eee

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

ch7/frontend/deployment.yaml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ metadata:
99
spec:
1010
replicas: 4
1111
strategy:
12-
type: RollingUpdate
13-
rollingUpdate:
14-
maxUnavailable: 25%
15-
maxSurge: 1
12+
type: RollingUpdate
13+
rollingUpdate:
14+
maxUnavailable: 25%
15+
maxSurge: 1
1616
selector:
1717
matchLabels:
1818
app: frontend
@@ -26,23 +26,30 @@ spec:
2626
image: 033870383707.dkr.ecr.us-west-2.amazonaws.com/frontend:latest
2727
imagePullPolicy: Always
2828
ports:
29-
- containerPort: 8000
29+
- containerPort: 8000
3030
env:
3131
- name: THOUGHTS_BACKEND_URL
3232
value: http://thoughts-service
3333
- name: USER_BACKEND_URL
3434
value: http://users-service
3535
livenessProbe:
3636
exec:
37-
command:
38-
- curl
39-
- http://localhost:8000/
37+
command:
38+
- curl
39+
- http://localhost:8000/
4040
initialDelaySeconds: 5
4141
periodSeconds: 30
4242
readinessProbe:
4343
exec:
44-
command:
45-
- curl
46-
- http://localhost:8000/
44+
command:
45+
- curl
46+
- http://localhost:8000/
4747
initialDelaySeconds: 5
4848
periodSeconds: 10
49+
resources:
50+
requests:
51+
memory: "64Mi"
52+
cpu: "60m"
53+
limits:
54+
memory: "128Mi"
55+
cpu: "70m"

0 commit comments

Comments
 (0)