@@ -90,6 +90,17 @@ apiServerExtraVolumes:
90
90
# so we need to ensure the cert is valid for localhost so we can talk
91
91
# to the cluster after rewriting the kubeconfig to point to localhost
92
92
apiServerCertSANs: [localhost]
93
+ kubeletConfiguration:
94
+ baseConfig:
95
+ # disable disk resource management by default
96
+ # kubelet will see the host disk that the inner container runtime
97
+ # is ultimately backed by and attempt to recover disk space.
98
+ # we don't want that.
99
+ imageGCHighThresholdPercent: 100
100
+ evictionHard:
101
+ nodefs.available: "0%"
102
+ nodefs.inodesFree: "0%"
103
+ imagefs.available: "0%"
93
104
`
94
105
95
106
// ConfigTemplateAlphaV3 is the kubadm config template for API version v1alpha3
@@ -128,9 +139,16 @@ apiEndpoint:
128
139
apiVersion: kubeadm.k8s.io/v1alpha3
129
140
kind: JoinConfiguration
130
141
---
131
- # no-op entry that exists soley so it can be patched
132
142
apiVersion: kubelet.config.k8s.io/v1beta1
133
143
kind: KubeletConfiguration
144
+ # disable disk resource management by default
145
+ # kubelet will see the host disk that the inner container runtime
146
+ # is ultimately backed by and attempt to recover disk space. we don't want that.
147
+ imageGCHighThresholdPercent: 100
148
+ evictionHard:
149
+ nodefs.available: "0%"
150
+ nodefs.inodesFree: "0%"
151
+ imagefs.available: "0%"
134
152
---
135
153
# no-op entry that exists soley so it can be patched
136
154
apiVersion: kubeproxy.config.k8s.io/v1alpha1
@@ -166,9 +184,16 @@ localAPIEndpoint:
166
184
apiVersion: kubeadm.k8s.io/v1beta1
167
185
kind: JoinConfiguration
168
186
---
169
- # no-op entry that exists soley so it can be patched
170
187
apiVersion: kubelet.config.k8s.io/v1beta1
171
188
kind: KubeletConfiguration
189
+ # disable disk resource management by default
190
+ # kubelet will see the host disk that the inner container runtime
191
+ # is ultimately backed by and attempt to recover disk space. we don't want that.
192
+ imageGCHighThresholdPercent: 100
193
+ evictionHard:
194
+ nodefs.available: "0%"
195
+ nodefs.inodesFree: "0%"
196
+ imagefs.available: "0%"
172
197
---
173
198
# no-op entry that exists soley so it can be patched
174
199
apiVersion: kubeproxy.config.k8s.io/v1alpha1
0 commit comments