yang2x
V2EX  ›  问与答

部署 k8s 服务, flannel pod 报错

  •  
  •   yang2x · Apr 15, 2020 · 2546 views
    This topic created in 2224 days ago, the information mentioned may be changed or developed.

    各位仙友,自己入手三台阿里云的服务器,部署 k8s 集群,主节点都 ok,在 work 节点 join 后, flannel 一直会被重启,后面报错,后台日志如下:

    Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-amd64-mkpfc': Get https://10.96.0.1:443/api/v1/namespaces/kube-system/pods/kube-flannel-ds-amd64-mkpfc: dial tcp 10.96.0.1:443: i/o timeout

    初始化命令: kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=172.17.xx.xx --kubernetes-version=v1.17.3 --ignore-preflight-errors=swap

    flannel 文件: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

    网上方法都有尝试,有谁遇到过,帮忙看下; 防火墙 /swap 分区 都已确认关闭

    2 replies    2020-04-15 17:42:05 +08:00
    rexyan
        1
    rexyan  
       Apr 15, 2020
    docker images 查看下所需得镜像都有了吗
    yang2x
        2
    yang2x  
    OP
       Apr 15, 2020
    @rexyan
    镜像都 ok 看起来报错是网络问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5492 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 125ms · UTC 01:49 · PVG 09:49 · LAX 18:49 · JFK 21:49
    ♥ Do have faith in what you're doing.