Skip to content
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

No mention of swap settings #9

Open
rask opened this issue Apr 14, 2020 · 2 comments
Open

No mention of swap settings #9

rask opened this issue Apr 14, 2020 · 2 comments

Comments

@rask
Copy link

rask commented Apr 14, 2020

I'm following this for learning purposes. All is well until the first kubeadm command. I am receiving preflight errors regarding memory and swap:

[ERROR Swap]: running with swap on is not supported. Please disable swap 

Maybe add a note about this in the guide? And any pointers on how to go around this "properly"?

LXD is version 4.0 and Kubernetes is at 1.18.1.

@corneliusweig
Copy link
Owner

Thanks for reporting. Would you care to send a PR?

I haven't encountered this problem so I have no proper workaround, sorry. But if you find out more, I'm eager to know.

@rask
Copy link
Author

rask commented Apr 20, 2020

You can disable swap for Kubelet in Kubelet configs. And during kubeadm run you must disable the Swap preflight check in order to allow init to work. Will add these in a PR for those who want to run with swap enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants