V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cctvnews
V2EX  ›  Kubernetes

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

  •  
  •   cctvnews · 2019-07-18 14:55:49 +08:00 · 8400 次点击
    这是一个创建于 1715 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2019-07-19 12:15:41 +08:00
    hzfyjgw
        1
    hzfyjgw  
       2019-07-18 15:11:25 +08:00
    node 上的 cni 网络组件没准备好
    cctvnews
        2
    cctvnews  
    OP
       2019-07-18 15:40:48 +08:00
    [root@node2 kubernetes]# rpm -qa | grep cni
    kubernetes-cni-0.7.5-0.x86_64


    这个组件是安装的了,应该无需手动配置才对
    hzfyjgw
        3
    hzfyjgw  
       2019-07-18 16:06:18 +08:00
    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
       2019-07-19 12:15:41 +08:00
    我把 flannel 换用 waeve 组件就好了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   951 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:35 · PVG 05:35 · LAX 14:35 · JFK 17:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.