Kubernetes 1.17 containerd 1.2.0 with Calico CNI node not joining to master
Did you setting --pod-network-cidr=192.168.0.0/16
to kubeadm init
?
Apparently, You need setting it.
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network
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