文章背景:因为在k8s1.25+版本后,部署calico.yaml文件的路径发生改变,故有此教程, 旨在适用于截至目前最新的k8s版本
q1: 我的k8s版本在1.25以下怎么下载caclio
a1:参见 calico对应k8s版本_calico版本-CSDN博客
使用方法 wget https://projectcalico.docs.tigera.io/archive/v3.18/manifests/calico.yaml
其中 v3.18为对应版本号,需要自行修改
1.25+版本部署(需科网,方法见文后)
1.进入官网查看对应版本关系
Quickstart for Calico on Kubernetes | Calico Documentation
2.查看官网下拉yaml文件链接,本例中选择3.28.3版本
kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.28.3/manifests/tigera-operator.yaml
kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.28.3/manifests/custom-resources.yaml
没换源记得换docker源
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://docker.1ms.run"],
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true,
"log-driver":"json-file",
"log-opts": {"max-size":"500m", "max-file":"3"},
"storage-driver": "overlay2"
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
科网方法:
法一:物理机端打开软件,选择节点,选择全局代理即可
法二:虚拟机端部署代理,待补充


2万+

被折叠的 条评论
为什么被折叠?



