Tweak the containerd garbage collect threshold on kubelets.

Pods were getting evicted due to disk pressure, so this causes garbage collection to trigger sooner.
This commit is contained in:
Tom Alexander
2026-07-18 13:59:46 -04:00
parent a3cdaa9128
commit 24f4a8c2d9
2 changed files with 12 additions and 6 deletions

View File

@@ -48,6 +48,12 @@ let
"fd00:3e42:e349::10"
];
imageMaximumGCAge = "24h"; # Delete unused images after 1 day.
imageGCHighThresholdPercent = 80;
imageGCLowThresholdPercent = 70;
evictionHard = {
"nodefs.available" = "5%";
"imagefs.available" = "10%";
};
};
kubelet_config_file = (to_yaml_file "kubelet-config.yaml" kubelet_config);
in