4 - 网络


Canal网络驱动下,Pod MTU值大于主机flannel.1MTU值

  • 编辑配置映射文件

kubectl –kubeconfig=kube_configxxx.yml edit configmaps -n kube-system canal-config

  • "type": "calico"下面添加"mtu": 1450

image-20181101183954443

  • 删除Canal Pod让它重建
  1. kubectl --kubeconfig=kube_configxxx.yml get pod -n kube-system |grep canal | \
  2. awk '{print $1}' | \
  3. xargs kubectl --kubeconfig=kube_configxxx.yml delete -n kube-system pod