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

kubelet cgroup driver: \"systemd\" is different from docker cgroup driver: \"cgroupfs\" #10

Open
cancer13 opened this issue Nov 3, 2021 · 0 comments

Comments

@cancer13
Copy link

cancer13 commented Nov 3, 2021

Hello!
Thank for your course (on Udemy) and for labs
Found a little problem on vagrant environment in labs
Get error
Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"systemd\" is different from docker cgroup driver: \"cgroupfs\""
It's can be fixed with https://stackoverflow.com/questions/43794169/docker-change-cgroup-driver-to-systemd

# on every node exec
echo '{"exec-opts": ["native.cgroupdriver=systemd"]}' >> /etc/docker/daemon.json
systemctl restart docker

But I think you can fix it in vagrant environment (freeze version of installing tools or add this config in host up script, i'm not sure) or add this in instruction at lab))

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

1 participant