k8s安装Calico
原创小于 1 分钟
k8s安装Calico
本实践将在 Ubuntu 22.04.3LTS 系统上进行安装测试
docker版本 24.0.6
kubeadm版本v1.28.2
版本
操作步骤
参考资料
https://github.com/projectcalico/calico
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml
wget https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom-resources.yaml
# update https://docs.tigera.io/calico/latest/networking/ipam/ip-autodetection#change-the-autodetection-method
cidr: 10.10.0.0/16
nodeAddressAutodetectionV4:
# interface: en.*
cidrs:
- 172.xxx.xxxx.0/24
kubectl create -f tigera-operator.yaml
kubectl create -f custom-resources.yaml
# 安装 calicoctl
cd /usr/local/bin/
curl -L https://github.com/projectcalico/calico/releases/download/v3.26.1/calicoctl-linux-amd64 -o kubectl-calico
chmod +x kubectl-calico
kubectl calico -h
kubectl calico