1.  mkdir -p /etc/cni/net.d

2. vi 10-flannel.conflist

{
  "name": "cbr0",
  "plugins": [
    {
      "type": "flannel",
      "delegate": {
        "hairpinMode": true,
        "isDefaultGateway": true
      }
    },
    {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      }
    }
  ]
}

3.

systemctl daemon-reload

systemctl restart kubelet

posted on 2018-05-02 19:22  九重霄  阅读(2929)  评论(0编辑  收藏  举报