Kubernetes 1.17 containerd 1.2.0 with Calico CNI node not joining to master Kubernetes 1.17 containerd 1.2.0 with Calico CNI node not joining to master kubernetes kubernetes

Kubernetes 1.17 containerd 1.2.0 with Calico CNI node not joining to master


Because you are not using docker you need to setup the cgroup driver explicitly.

To use the systemd cgroup driver, set plugins.cri.systemd_cgroup = true in /etc/containerd/config.toml and systemctl restart containerd

You have to modify the file kubeadm-flags.env in /var/lib/kubelet and set the cgroups driver.

KUBELET_EXTRA_ARGS=--cgroup-driver=systemd

Make sure to point to above file in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env