-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
kubelet service doesn't start on a system with swap #50443
Comments
@MasseGuillaume You can set See: https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/ |
you mean: (it's a string for some reason) nixpkgs/nixos/modules/services/cluster/kubernetes/default.nix Lines 479 to 483 in 21517c6
I think ideally this should be in the default configuration if we detect a swap device. This way, it would work out of the box. |
It's a string yes. Sorry. However I don't agree that we should change the default behavior of components, unless there's a strong reason for doing so. If the Kubernetes maintainers recommend against running the kubelet on swap-enabled nodes, it's not up to us to nullify this. |
Agreed, the point of the upstream setting is presumably to protect against users accidentally runny kubelets on swap-enabled machines by accident. Inverting the default would void this safety. Let's not do that unless we have very good reason. :) |
Steps to reproduce
More details: kubernetes/kubeadm#610
Workaround: Disable swap:
sudo swapoff -a
& Restart service:sudo systemctl restart kubelet.service
The text was updated successfully, but these errors were encountered: