0

在 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 重置

但没有任何效果...

4

1 回答 1

0

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

journalctl -r -u kubelet.service

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

希望这会有所帮助。

于 2017-10-10T06:23:39.390 回答