一,重置k8s
1,主节点:
kubectl delete node node01 node02 master
kubeadm reset
rm -rf .kube /var/log/containers /var/log/pods
2,从节点
kubeadm reset
rm -rf .kube /var/log/containers /var/log/pods
二,更换网络插件
卸载flannel:
在master节点删除flannel
kubectl delete -f kube-flannel.yml
重启kubelet
sytemctl restart kubelet
安装calico:
wget https://docs.projectcalico.org/manifests/calico.yaml
kubectl apply -f calico.yaml
安装完毕后使用docker images 查看容器镜像可以看见如下以calico打头的镜像