k8s卸载calico的cni

  1. 1. 安装cni
    1. 1.1. Calico
    2. 1.2. canal
  2. 2. 下载calico
    1. 2.1. Calico
    2. 2.2 canal
  3. 3. 系统配置修复

k8s卸载calico的cni

1. 安装cni

1.1. Calico

ubeadm init --apiserver-advertise-address=192.168.1.118 --pod-network-cidr=192.168.0.0/16 --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers

### deployment
kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
kubectl create -f https://docs.projectcalico.org/manifests/custom-resources.yaml

1.2. canal

ubeadm init --apiserver-advertise-address=192.168.1.118 --pod-network-cidr=192.168.0.0/16 --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers

### deployment
kubectl apply -f https://docs.projectcalico.org/manifests/canal.yaml

2. 下载calico

2.1. Calico

kubectl delete -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
kubectl delete -f https://docs.projectcalico.org/manifests/custom-resources.yaml

2.2 canal

kubectl delete -f https://docs.projectcalico.org/manifests/canal.yaml

3. 系统配置修复

每个node下都会被配置系统文件,会导致奇怪的错误
清理/etc/cni/net.d/


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com

💰

×

Help us with donation