Calico#
安装Calico组件#
建议使用官方步骤安装Controller,然后使用自定义资源配置网段
截至2023.05.28,calico的版本为 v3.26.0:
$ kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml下载calico自定义资源的配置并编辑:
wget https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml配置网段:
spec:
# Configures Calico networking.
calicoNetwork:
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: 10.244.0.0/16
encapsulation: IPIP
natOutgoing: Enabled
nodeSelector: all()
- blockSize: 122
cidr: 2001:db8:42:0::/56
encapsulation: None
natOutgoing: Enabled
nodeSelector: all()加载配置:
$ kubectl apply -f custom-resources.yaml