Pod MTU 值大于主机 flannel.1MTU 值

1. 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 让它重建

    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

    Copy