Created API client, waiting for the control plane to become ready

10/1/2017

When running kubeadm init on ubuntu 16.04 i'm getting the following error:

The system just hangs for a very long time.

[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

Did someone encountered this error and solved it?

I have tried to:

  1. restart the kubectl service
  2. kubeadm reset

but nothing works ...

-- Tal Avissar
kubeadm
kubernetes
ubuntu

1 Answer

10/10/2017

When I encountered this issue, it always been kubelet problem. But the real reason why kubelet failed or failed to start component containers(controller-manager/kube-apiserver...) is different. So I suggest you can add more info by get reverse log of kubelet with command:

journalctl -r -u kubelet.service

You can check log and debug by yourself, or paste here so that we can know more about your situation.

Hope this is helpful.

-- Crazykev
Source: StackOverflow