yang2x
V2EX  ›  问与答

部署 k8s 服务, flannel pod 报错

  •  
  •   yang2x · Apr 15, 2020 · 2952 views
    This topic created in 2412 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
    rexyan
    Apr 15, 2020
    1
    docker images 查看下所需得镜像都有了吗
    yang2x
    yang2x
    OP
    Apr 15, 2020
    2
    @rexyan
    镜像都 ok 看起来报错是网络问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4971 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:29 · PVG 11:29 · LAX 19:29 · JFK 22:29
    ♥ Do have faith in what you're doing.