kubernetes集群节点多网卡,calico/flannel组件如何指定网卡
1、calico如果有节点是多网卡,所以需要在deploy的env指定内网网卡
spec:
containers:
- env:
- name: IP
value: "autodetect"
- name: IP_AUTODETECTION_METHOD # DaemonSet中添加该环境变量
value: interface=eth0 # 指定内网网卡
- name: CALICO_IPV4POOL_IPIP
value: "Always"
重启calico
2、flannel如果有节点是多网卡,在deploy的args中指定网卡
containers:
- name: kube-flannel
image: quay.io/coreos/flannel:v0.10.0-amd64
command:
- /opt/bin/flanneld
args:
- --ip-masq
- --kube-subnet-mgr
- --iface=eth0
标签:name,kubernetes,指定,calico,网卡,节点,flannel
From: https://www.cnblogs.com/xiaohaoge/p/16953849.html