【问题标题】:Created API client, waiting for the control plane to become ready创建 API 客户端,等待控制平面准备就绪
【发布时间】:2018-03-12 21:31:15
【问题描述】:

在 ubuntu 16.04 上运行 kubeadm init 时出现以下错误:

系统只是挂了很长时间。

[certificates] Generated API server kubelet client certificate and key.
[certificates] Generated service account token signing key and public key.
[certificates] Generated front-proxy CA certificate and key.
[certificates] Generated front-proxy client certificate and key.
[certificates] Valid certificates and keys now exist in "/etc/kubernetes/pki"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/controller-manager.conf"
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/scheduler.conf"
[apiclient] Created API client, waiting for the control plane to become ready

有人遇到这个错误并解决了吗?

我已经尝试过:

  1. 重启kubectl服务
  2. kubeadm 重置

但没有任何效果...

【问题讨论】:

    标签: ubuntu kubernetes kubeadm


    【解决方案1】:

    我遇到这个问题的时候,一直是kubelet的问题。但是 kubelet 启动组件容器(controller-manager/kube-apiserver...)失败或失败的真正原因是不同的。所以我建议你可以通过使用命令获取 kubelet 的反向日志来添加更多信息:

    journalctl -r -u kubelet.service
    

    您可以自己查看日志和调试,也可以在这里粘贴,以便我们了解您的情况。

    希望这有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-03-29
      • 1970-01-01
      • 1970-01-01
      • 2022-10-23
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多