gpt4 book ai didi

kubernetes - kubeadm连接失败。无法请求签名证书

转载 作者:行者123 更新时间:2023-12-02 12:22:57 26 4
gpt4 key购买 nike

我对此有些困惑,因为它已经工作了好几天没有问题。

我曾经能够将节点加入群集而不会出现问题。我将在主节点上运行以下命令:

kubeadm init .....

之后,它将生成一个连接命令和 token ,以发布给我想要连接的其他节点。像这样:
kubeadm join --token 99385f.7b6e7e515416a041 192.168.122.100

我将在节点上运行它,然后它们将毫无问题地加入。第二天早上,这突然停止了工作。这是我现在运行命令时看到的:
[kubeadm] WARNING: kubeadm is in alpha, please do not use it for 
production clusters.
[preflight] Running pre-flight checks
[tokens] Validating provided token
[discovery] Created cluster info discovery client, requesting info from "http://192.168.122.100:9898/cluster-info/v1/?token-id=99385f"
[discovery] Cluster info object received, verifying signature using given token
[discovery] Cluster info signature and contents are valid, will use API endpoints [https://192.168.122.100:6443]
[bootstrap] Trying to connect to endpoint https://192.168.122.100:6443
[bootstrap] Detected server version: v1.6.0-rc.1
[bootstrap] Successfully established connection with endpoint "https://192.168.122.100:6443"
[csr] Created API client to obtain unique certificate for this node, generating keys and certificate signing request
failed to request signed certificate from the API server [cannot create certificate signing request: the server could not find the requested resource]

我要加入的节点似乎确实已成功连接到主节点上的API服务器,但是由于某种原因,它现在无法请求证书。

有什么想法吗?

最佳答案

对我来说

sudo service kubelet restart

没用。
我所做的如下:
  • 从/ etc / kubernetes / *的主节点内容复制到相同位置/ etc / kubernetes的从节点

  • 我再次尝试了“kubeadm join ...”命令。这次节点没有任何投诉地加入了集群。

    我认为这是暂时的破解,但确实有效!

    关于kubernetes - kubeadm连接失败。无法请求签名证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43009758/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com