Kubernetes failed to setup network for pod after executed kubeadm reset

后端 未结 6 1119
故里飘歌
故里飘歌 2021-02-03 12:41

I initialized Kubernetes with kubeadm init, and after I used kubeadm reset to reset it I found --pod-network-cidr was wrong. After correct

6条回答
  •  故里飘歌
    2021-02-03 13:25

    After kubeadm reset and before kubeadm init do the following on master and worker nodes:

    1. kubeadm reset
    2. systemctl stop kubelet & systemctl stop docker
    3. rm -rf /var/lib/cni/
    4. rm -rf /var/lib/kubelet/*
    5. rm -rf /etc/cni/
    6. ifconfig cni0 down & ip link delete cni0
    7. ifconfig flannel.1 down & ip link delete flannel.1
    8. ifconfig docker0 down

    Tested with kubernetes server version: v1.13.2 & flannel: v0.10.0-amd64

    github issue reference

提交回复
热议问题