Skip to content

Commit def3041

Browse files
committed
fix(k8s): Fix memory requests
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]>
1 parent c6c2df4 commit def3041

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

kube/aks/api.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
- name: api
2424
image: kernelci/api
2525
imagePullPolicy: Always
26+
resources:
27+
requests:
28+
memory: "1Gi"
29+
cpu: "500m"
2630
ports:
2731
- containerPort: 8000
2832
command:

kube/aks/redis.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ spec:
2222
containers:
2323
- name: redis
2424
image: redis:6.2
25+
imagePullPolicy: Always
26+
resources:
27+
requests:
28+
memory: "512Mi"
29+
cpu: "500m"
2530
ports:
2631
- containerPort: 6379
2732
---

0 commit comments

Comments
 (0)