-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kinder: pin the CR cgroup driver to "systemd" #2495
kinder: pin the CR cgroup driver to "systemd" #2495
Conversation
after merging kubernetes/kubernetes#99647 and without this the CI would / can fail. EDIT: i tested both the docker and containerd images locally. |
5e39195
to
165aaae
Compare
/retest |
Pin the driver to "systemd" in: - the Docker / containerd config files during image alter - KubeletConfiguration that kubeadm deploys
165aaae
to
920dc0e
Compare
// Workaround from https://github.com/kubernetes/kubernetes/issues/43704#issuecomment-289484654 | ||
// Using the systemd driver in our rather old base image results in errors around the kubepods.slice. | ||
// Write the flags --cgroups-per-qos=false --enforce-node-allocatable="" in the KUBELET_EXTRA_ARGS file. | ||
// | ||
// It's not possible to pass these via the KubeletConfiguration because the validation / defaulting is bogus. | ||
// Empty slice gets defaulted to "pods" and non-empty slice fails for 'cgroupsPerQOS: false' - | ||
// i.e. it is not possible to pass 'none' or '[]' for the 'enforceNodeAllocatable' config field. | ||
// https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/pkg/kubelet/apis/config/validation/validation.go#L53-L54 | ||
if err := bc.RunInContainer("bash", "-c", | ||
"printf 'KUBELET_EXTRA_ARGS=\"--cgroups-per-qos=false --enforce-node-allocatable=\"\"\"' > /etc/default/kubelet", | ||
); err != nil { | ||
return errors.Wrap(err, "could not write /etc/default/kubelet") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debugging this was a lot of "fun".
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, neolit123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Pin the driver to "systemd" in:
xref #874