feat: add image-gc to k0s and talos kubelet options

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-02-01 17:01:30 -05:00
1 parent 73bd9fabad
commit cba35dc66a
2 files changed
+3 -2

No files matched your search

@@ -14,11 +14,12 @@ spec:
ssh: ssh:
address: "{{ item.address }}" address: "{{ item.address }}"
user: "{{ item.ssh_username }}" user: "{{ item.ssh_username }}"
{% if item.controller %}
installFlags: installFlags:
{% if item.controller %}
- --disable-components=metrics-server - --disable-components=metrics-server
- --no-taints - --no-taints
{% endif %} {% endif %}
- --kubelet-extra-args="--image-gc-low-threshold=50 --image-gc-high-threshold=60"
files: files:
- name: bootstrap-scripts - name: bootstrap-scripts
src: scripts src: scripts
@@ -106,7 +106,7 @@ controlPlane:
kubelet: kubelet:
extraArgs: extraArgs:
image-gc-low-threshold: 50 image-gc-low-threshold: 50
image-gc-high-threshold: 60 image-gc-high-threshold: 55
rotate-server-certificates: true rotate-server-certificates: true
nodeIP: nodeIP:
validSubnets: validSubnets: