You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current sample group_vars has this comment telling users to use comma to separate levels in kubelet_enforce_node_allocatable:
A comma separated list of levels of node allocatable enforcement to be enforced by kubelet.
Acceptable options are 'pods', 'system-reserved', 'kube-reserved' and ''. Default is "".
I will get this in the rendered kubelet config file:
enforceNodeAllocatable:
- pods,system-reserved
And kubelet will refuse to start:
Failed to validate kubelet configuration" err="invalid configuration: option \"pods,system-reserved\" specified for enforceNodeAllocatable
IMHO, we should either
change the template to use comma as delimiter (split(',')), or
Change the comment section to tell users to use whitespace as delimiter
It's worth noting that, even after fixing this particular issue,kubelet_enforce_node_allocatable still cannot take anything other than pods. This is because the current kubelet config template does not have systemReservedCgroup or kubeReservedCgroup fields and they are not configurable. These two fields are required for adding kubeReserved/systemReserved to enforceNodeAllocatable. See documentation for kubelet configuration:
This flag specifies the various Node Allocatable enforcements that Kubelet needs to perform. This flag accepts a list of options. Acceptable options are none, pods, system-reserved and kube-reserved. If none is specified, no other options may be specified. When system-reserved is in the list, systemReservedCgroup must be specified. When kube-reserved is in the list, kubeReservedCgroup must be specified.
It seems like the two fields can be added via #9209
The text was updated successfully, but these errors were encountered:
The current sample group_vars has this comment telling users to use comma to separate levels in
kubelet_enforce_node_allocatable
:However, in kubelet config template, the value is split by
.split()
kubespray/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
Lines 18 to 24 in 09748e8
split()
uses whitespace as delimiter by default, not comma.If I write this in my group_vars:
I will get this in the rendered kubelet config file:
And kubelet will refuse to start:
IMHO, we should either
split(',')
), orIt's worth noting that, even after fixing this particular issue,
kubelet_enforce_node_allocatable
still cannot take anything other thanpods
. This is because the current kubelet config template does not havesystemReservedCgroup
orkubeReservedCgroup
fields and they are not configurable. These two fields are required for addingkubeReserved
/systemReserved
toenforceNodeAllocatable
. See documentation for kubelet configuration:It seems like the two fields can be added via #9209
The text was updated successfully, but these errors were encountered: