"cni0" already has an IP address different from 10.244.2.1/24。 

Error while adding to cni network: failed to allocate for range 0: no IP addresses available in range set: 10.244.2.1-10.244.2.254


解决:

干掉cni-flannel,停运集群.清理环境.
    1. rm -rf /var/lib/cni/flannel/* && rm -rf /var/lib/cni/networks/cbr0/* && ip link delete cni0  
    2. rm -rf /var/lib/cni/networks/cni0/*
    3. kubeadm reset
    4. kubeadm join
posted on 2018-04-25 11:43  九重霄  阅读(4060)  评论(1编辑  收藏  举报