Skip to content

Commit

Permalink
fix(k8s): Fix memory requests
Browse files Browse the repository at this point in the history
If we do not request resources, then there is high chance we will have
this pods evicted due some of pods taking too much memory.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Dec 21, 2024
1 parent 85bb4e5 commit 07a444c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kube/aks/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
- name: api
image: kernelci/api
imagePullPolicy: Always
resources:
requests:
memory: "1Gi"
cpu: "500m"
ports:
- containerPort: 8000
command:
Expand Down
5 changes: 5 additions & 0 deletions kube/aks/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ spec:
containers:
- name: redis
image: redis:6.2
imagePullPolicy: Always
resources:
requests:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 6379
---
Expand Down

0 comments on commit 07a444c

Please sign in to comment.