4 - 网络
Canal网络驱动下,Pod MTU值大于主机flannel.1MTU值
- 编辑配置映射文件
kubectl –kubeconfig=kube_configxxx.yml edit configmaps -n kube-system canal-config
- 在
"type": "calico"
下面添加"mtu": 1450
- 删除Canal Pod让它重建
kubectl --kubeconfig=kube_configxxx.yml get pod -n kube-system |grep canal | \
awk '{print $1}' | \
xargs kubectl --kubeconfig=kube_configxxx.yml delete -n kube-system pod