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

转载于:https://www.cnblogs.com/jiuchongxiao/p/8982004.html

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐