Skip to content

Commit 2cd66bc

Browse files
authored
NO-JIRA: configure kubelet to disable image garbage collection in kubeadm CI config (red-hat-data-services#1327)
This should hopefully solve the case of disappearing pytorch images after kubernetes tests are done but before a Trivy scan is performed.
1 parent ddcab5e commit 2cd66bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/cached-builds/kubeadm.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@ controllerManager: {}
5959
dns: {}
6060
proxy: {}
6161
scheduler: {}
62+
---
63+
apiVersion: kubelet.config.k8s.io/v1beta1
64+
kind: KubeletConfiguration
65+
# ISSUE #1326: disable gc, otherwise kubelet would GC Pytorch images causing later tests to fail
66+
# The low threshold must be strictly less than the high threshold
67+
imageGCHighThresholdPercent: 100
68+
imageGCLowThresholdPercent: 99
69+
# https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#minimum-eviction-reclaim
70+
evictionHard:
71+
# eviction threshold nodefs.available must be positive
72+
nodefs.available: "1Mi"
73+
# eviction threshold imagefs.available must be positive
74+
imagefs.available: "1Mi"

0 commit comments

Comments
 (0)