I initialized Kubernetes with kubeadm init
, and after I used kubeadm reset
to reset it I found --pod-network-cidr
was wrong. After correct
After kubeadm reset and before kubeadm init do the following on master and worker nodes:
kubeadm reset
systemctl stop kubelet
& systemctl stop docker
rm -rf /var/lib/cni/
rm -rf /var/lib/kubelet/*
rm -rf /etc/cni/
ifconfig cni0 down
& ip link delete cni0
ifconfig flannel.1 down
& ip link delete flannel.1
ifconfig docker0 down
Tested with kubernetes server version: v1.13.2
& flannel:
v0.10.0-amd64
github issue reference