Skip to content

Commit 5dafbe8

Browse files
committed
fix: Improve better versions
by explicitly adding cpu and memmory constrainsts
1 parent bf0c4fa commit 5dafbe8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

04-built-in-resource-types/Deployment/Deployment.nginx-better.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
resources:
2929
limits:
3030
memory: "50Mi"
31+
cpu: "250m"
3132
requests:
3233
memory: "50Mi"
3334
cpu: "250m"

04-built-in-resource-types/Pod/Pod.nginx-better.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ spec:
1818
resources:
1919
limits:
2020
memory: "50Mi"
21+
cpu: "500m"
2122
requests:
22-
memory: "50Mi"
23+
memory: "25Mi"
2324
cpu: "250m"
2425
securityContext:
2526
allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)