cctvnews

k8s node 节点加入失败问题请教

  •  
  •   cctvnews · Jul 18, 2019 · 9379 views
    This topic created in 2490 days ago, the information mentioned may be changed or developed.

    3 台 PC

    10.0.0.11 master 已 Ready 10.0.0.12 node1 已 Ready 10.0.0.13 node2 NotReady

    奇怪的是 node1 和 node2 安装完全,从同一文档复制粘贴来的,后来又重装了一次也是一样的问题,在 join 以后 node2 上查看 systemctl status kubelet -服务信息,报错为:


    Jul 18 15:53:33 node2 kubelet[22013]: W0718 15:53:33.975695 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d Jul 18 15:53:38 node2 kubelet[22013]: W0718 15:53:38.976010 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d Jul 18 15:53:43 node2 kubelet[22013]: W0718 15:53:43.976326 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d

    请求大神给与指导,该如何排错

    4 replies    2019-07-19 12:15:41 +08:00
    hzfyjgw
        1
    hzfyjgw  
       Jul 18, 2019
    node 上的 cni 网络组件没准备好
    cctvnews
        2
    cctvnews  
    OP
       Jul 18, 2019
    [root@node2 kubernetes]# rpm -qa | grep cni
    kubernetes-cni-0.7.5-0.x86_64


    这个组件是安装的了,应该无需手动配置才对
    hzfyjgw
        3
    hzfyjgw  
       Jul 18, 2019
    No networks found in /etc/cni/net.d

    正常的应该是这样的
    ···
    root@k8s-master-1:~# ls /etc/cni/net.d/
    10-flannel.conflist
    root@k8s-master-1:~# ll /etc/cni/net.d/
    total 12
    drwxr-xr-x 2 root root 4096 Jul 10 03:14 ./
    drwxr-xr-x 3 root root 4096 Feb 23 10:38 ../
    -rw-r--r-- 1 root root 267 Jul 10 03:14 10-flannel.conflist
    root@k8s-master-1:~# cat /etc/cni/net.d/10-flannel.conflist
    {
    "name": "cbr0",
    "plugins": [
    {
    "type": "flannel",
    "delegate": {
    "hairpinMode": true,
    "isDefaultGateway": true
    }
    },
    {
    "type": "portmap",
    "capabilities": {
    "portMappings": true
    }
    }
    ]
    }

    ···
    cctvnews
        4
    cctvnews  
    OP
       Jul 19, 2019
    我把 flannel 换用 waeve 组件就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3384 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:01 · PVG 21:01 · LAX 06:01 · JFK 09:01
    ♥ Do have faith in what you're doing.