Skip to content

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

@cancer13

Description

@cancer13

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions