Skip to content

Commit

Permalink
feat: added pod limits
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed May 4, 2023
1 parent 9ac4cd5 commit 6f76fff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions k8s/api-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ spec:
image: ulisesgascon/simple-api:latest
ports:
- containerPort: 3000
# resources:
# requests:
# cpu: 500m
# limits:
# cpu: 500m
resources:
requests:
memory: "100Mi"
cpu: 100m
limits:
cpu: 200m
memory: "250Mi"
livenessProbe:
httpGet:
path: /__/health
Expand Down
12 changes: 7 additions & 5 deletions k8s/landing-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ spec:
image: <IMAGE>
ports:
- containerPort: 80
# resources:
# requests:
# cpu: 500m
# limits:
# cpu: 500m
resources:
requests:
memory: "100Mi"
cpu: 100m
limits:
cpu: 200m
memory: "250Mi"
livenessProbe:
httpGet:
path: /
Expand Down

0 comments on commit 6f76fff

Please sign in to comment.