Skip to content

Commit

Permalink
Add resource limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Pavlovskiy committed Aug 12, 2023
1 parent f64a8e9 commit aec6462
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .k8s/prod/carres-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
containers:
- name: carres-api
image: ghcr.io/nikitades/carres-api:latest
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
ports:
- containerPort: 8080
env:
Expand Down
7 changes: 7 additions & 0 deletions .k8s/prod/carres-keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
"--hostname-strict=false",
"--proxy=passthrough",
]
resources:
limits:
cpu: 300m
memory: 384Mi
requests:
cpu: 200m
memory: 256Mi
ports:
- containerPort: 8080
env:
Expand Down
7 changes: 7 additions & 0 deletions .k8s/prod/carres-website-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
containers:
- name: carres-website
image: ghcr.io/nikitades/carres-website:latest
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
ports:
- containerPort: 3000
env:
Expand Down
7 changes: 7 additions & 0 deletions .k8s/prod/postgres-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
containers:
- name: postgres
image: postgres:15
resources:
limits:
cpu: 400m
memory: 512Mi
requests:
cpu: 200m
memory: 256Mi
ports:
- containerPort: 5432
volumeMounts:
Expand Down

0 comments on commit aec6462

Please sign in to comment.