"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,停运集群.清理环境.
- rm -rf /var/lib/cni/flannel/* && rm -rf /var/lib/cni/networks/cbr0/* && ip link delete cni0
- rm -rf /var/lib/cni/networks/cni0/*
- kubeadm reset
- kubeadm join