Friday, June 9, 2017

If Kubernetes 1.6.4 install on CentOS7 at the kubeadm init seems to do nothing at "[apiclient] Created API client, waiting for the control plane to become ready"

If Kubernetes 1.6.4 install on CentOS7 at the kubeadm init seems to do nothing at "[apiclient] Created API client, waiting for the control plane to become ready"

If Kubernetes 1.6.4 install on CentOS7 at the kubeadm init seems to do nothing at "[apiclient] Created API client, waiting for the control plane to become ready"

And your internet access is from behind a proxy, ensure that the docker knows the proxy settings

Edit the docker.service file at /usr/lib/systemd/system/docker.service to have the proxy defined in the Environment variables like this


Environment=http_proxy=http://proxy.YY.XXXX.net:8080
Environment=https_proxy=http://proxy.YY.XXXX.net:8080

and 

systemctl daemon-reload
systemctl restart docker 

Then run the kubeadm init clearing the previous run on the master using 

kubeadm reset

then 

kubeadm init 

again


Please Note: The docker version used precisely here was 


[root@kub2 ~]# yum list installed docker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nonstop.co.il
 * epel: mirror.ibcp.fr
 * extras: mirror.nonstop.co.il
 * updates: mirror.nonstop.co.il
Installed Packages
docker.x86_64             2:1.12.6-28.git1398f24.el7.centos              @extras

No comments:

Post a Comment