【问题标题】:kubernetes cluster adding windows nodekubernetes集群添加windows节点
【发布时间】:2021-09-28 08:50:57
【问题描述】:

Windows server 2019 - os build 1809 - 完全更新 使用 kubespray 创建 Kubernetes 集群并使用 https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes/ 添加窗口

添加了节点,但是当 kube-flannel pod 运行时,它会抛出以下错误 enter image description here

WARNING: The names of some imported commands from the module 'hns' include unapproved verbs that might make them less
discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose
parameter. For a list of approved verbs, type Get-Verb.
FATA[2021-07-20T14:36:35-07:00] rpc error: code = Internal desc = could not create IP forward entry: The object already exists.
I0720 14:36:36.635659    9876 main.go:518] Determining IP address of default interface
I0720 14:36:38.070746    9876 main.go:531] Using interface with name vEthernet (Ethernet) 2 and address 192.168.10.151
I0720 14:36:38.070746    9876 main.go:548] Defaulting external address to interface address (192.168.10.151)
E0720 14:36:39.091376    9876 main.go:243] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-windows-amd64-g6nn9': Get "https://127.0.0.1:6443/api/v1/namespaces/kube-system/pods/kube-flannel-ds-windows-amd64-g6nn9": dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it.

Docker 版本 20.10.6 我尝试了多个 docker ee 版本,即 19.3 或 18.09

还存在已验证的服务帐户,因为它是已知问题。

【问题讨论】:

    标签: windows docker kubernetes cni


    【解决方案1】:

    您尝试了不同的 docker 版本,但没有尝试过不同的 windows kube-proxy 版本,尤其是您按照提供的手册安装的 1.20.0 而不是 1.21.0。

    curl -L https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/kube-proxy.yml | sed 's/VERSION/v1.20.0/g' | kubectl apply -f -
    

    Kube-Proxy-Windows CrashLoopBackOff。还要检查修复法兰绒问题的 EDIT1。

    【讨论】:

      猜你喜欢
      • 2015-10-05
      • 2020-02-04
      • 1970-01-01
      • 1970-01-01
      • 2021-01-08
      • 2023-01-30
      • 2015-11-26
      • 1970-01-01
      • 2019-03-22
      相关资源
      最近更新 更多