K8S网络插件 CALICO最新版 安装
K8S网络插件 CALICO最新版 安装
calico 最新版本是v3.29.2
它有多种安装方式以适应不同规模的k8s集群。
[https://docs.tigera.io/calico/latest/getting-started/kubernetes/self-managed-onprem/onpremises#install-calico-with-kubernetes-api-datastore-more-than-50-nodes]
Install Calico with Kubernetes API datastore, 50 nodes or less
Install Calico with Kubernetes API datastore, more than 50 nodes
Install Calico with etcd datastore
但官方最推荐的是用operator的方式来安装。operator的方式,无法修改底层的镜像源,导致国内朋友使用时非常不方便。所以想到一个折中的方式,把镜像下载导入本地后,重新打标签为dock.io/calico/xxx:v3.29.2 ,这样本地缓存就有相关的镜像,服务应该会正常启动了。
如何下国外的镜像,每个人有每个人方法,这里不赘述啦。
官方文档
添加链接描述
官方安装步骤不变
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.2/manifests/tigera-operator.yaml
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.2/manifests/custom-resources.yaml
#查看deployment 和daemonset中的镜像源。
dock.io/calico/xxx:v3.29.2
#查看已下载好的镜像
ctr -n k8s.io images list
#修改镜像tag ,下面仓库地址仅为展示,不能直接下载,需要自己创建好镜像仓库。
ctr -n k8s.io images tag registry.cn-zhangjiakou.aliyuncs.com/typha:v3.29.2 dock.io/calico/typha:v3.29.2
#打tag的动作每个节点都要操作下,节点多的确实有点麻烦,自己做实验就两三台节点,还好。
#依此把8个镜像都修改好后,再重启POD
希望对大家有帮忙或启发啦,感谢阅读。