Skip to content

Commit

Permalink
Added garbage collection to kubelet` settings (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
spietras authored Jul 25, 2024
1 parent 49579fc commit 59ec66c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hosts/xenon/modules/kubernetes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
kubeletConfig = yamlFormat.generate "kubelet.yaml" {
apiVersion = "kubelet.config.k8s.io/v1beta1";
kind = "KubeletConfiguration";
# Always remove unused images if they take up more than 50% of the storage
imageGCHighThresholdPercent = 50;
# Don't remove unused images if they take up less than 10% of the storage
imageGCLowThresholdPercent = 10;
# Delete unused images after 7 days
imageMaximumGCAge = "7d";
systemReserved = {
# Reserved CPU for system
cpu = "${config.constants.kubernetes.resources.reserved.system.cpu}";
Expand Down

0 comments on commit 59ec66c

Please sign in to comment.