Here's how to make sure docker and kubelet use same cgroups driver by explicitly configuring both:
Docker:
$ cat /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=cgroupfs"]
}
Kubelet (when set up using with kubeadm
):
$ cat /etc/systemd/system/kubelet.service.d/05-custom.conf
[Service]
Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=cgroupfs"
Don't forget to systemctl daemon-reload
and restart the services after changing the configs.