参考文档:https://docs.tigera.io/calico/latest/getting-started/kubernetes/self-managed-onprem/onpremises
使用Tigera Calico Operator安装Calico
当前主机环境:
- 主机系统:CentOS Linux release 7.9.2009 (Core)
- Kubernetes版本:v1.21.0
Calico版本:v3.27.0
1. 配置Network Manager
允许Calico管理接口, 在所有主机上操作:
[root@localhost ~]# cat > /etc/NetworkManager/conf.d/calico.conf <<EOF
[keyfile]
unmanaged-devices=interface-name:cali*;interface-name:tunl*;interface-name:vxlan.calico;interface-name:wireguard.cali
EOF
2. 在集群上安装operator
[root@localhost ~]# kubectl create -f https://raw.githubusercontent.co