calico网络 包含 overlay 和 underlay网络
overlay IPIP和VXLAN模式, IPIP可以使用BGP协议, VXLAN不能使用BGP协议, 可以跨网段,建立隧道
underlay BGP模式, 必须同一个C网
1、修改ippool,需要把ipipMode从Always修改成为Never(执行下面命令修改ipipMode)。
[root@k8s-master1 target]# kubectl edit ippool ipipMode: Never
2. 关闭 ipip模式, 定义asnumber 自治网络号。
cat << EOF | calicoctl create -f - apiVersion: projectcalico.org/v3 kind: BGPConfiguration metadata: name: default spec: logSeverityScreen: Info nodeToNodeMeshEnabled: false asNumber: 64512 EOF
3. 指定反射器地址。
cat << EOF | calicoctl create -f - apiVersion: projectcalico.org/v3 kind: BGPPeer metadata: name: bgppeer-global-55 spec: peerIP: 192.168.15.55 asNumber: 64512 EOF
参考:
https://blog.csdn.net/M2l0ZgSsVc7r69eFdTj/article/details/106561069
https://www.cnblogs.com/dengcongcong/p/7066894.html
TRANSLATE with x English TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back 标签:ipip,BGP,location,https,com,calico From: https://www.cnblogs.com/gaoyuechen/p/18001073