kubeadm init hangs

76 views
Skip to first unread message

Don Raikes

unread,
Sep 20, 2017, 6:16:27 PM9/20/17
to kubernet...@googlegroups.com

Hello,

 

I know I have seen some discussion on this topic both in this group and on the Kubernetes github issues, but I haven’t found a good solution, so I thought I would add my experience to the mix.

 

Earlier this week, Oraclelinux added Kubernetes support through its yum repositories.  In an effort to try the new goodies, I installed the latest public repositories and proceeded to follow the installation guide at:

https://docs.oracle.com/cd/E52668_01/E88884/html/index.html

 

After installing all the prerequisites, on a fresh installation of oraclelinux 7.3, as root I ran:

# kubeadm init

 

All goes well until:

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

 

At this point the initialization hangs and never completes.  I waited over an hour to see if it would finish but no luck.

 

The complete log of my kubeadm init follows:

----  log ----

[init] Using Kubernetes version: v1.7.6

[init] Using Authorization modes: [Node RBAC]

[preflight] Running pre-flight checks

[preflight] Starting the kubelet service

[kubeadm] WARNING: starting in 1.8, tokens expire after 24 hours by default (if you require a non-expiring token use --token-ttl 0)

[certificates] Generated CA certificate and key.

[certificates] Generated API server certificate and key.

[certificates] API Server serving cert is signed for DNS names [slc14rit kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 10.247.128.112]

[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

---- end log ---

 

As you can see I am using Kubernetes 1.7.6 and I am using

 

$ docker version

Client:

Version:      17.03.1-ce

API version:  1.27

Go version:   go1.7.5

Git commit:   5cda16c

Built:        Wed Mar 29 03:33:13 2017

 

I have tried this on a couple of different systems with the same results.

 

Any suggestions would be welcome.

 

TIA,

Don

ra...@heptio.com

unread,
Oct 11, 2017, 12:01:51 PM10/11/17
to Kubernetes user discussion and Q&A
Hi Don,

I've had the issue before as well. Can you double check that you can start a docker image? The next thing to check is your SELinux status which has stopped kubeadm working for me on CentOS 7. I've also had great luck using docker 1.12.6 instead of the 17 series.

Ralph
Reply all
Reply to author
Forward
0 new messages