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

  1. 编辑配置映射文件

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

  2. "type": "calico"下面添加"mtu": 1450

    image-20181101183954443

  3. 删除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