-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[apiclient] Created API client, waiting for the control plane to become ready stuck #396
Comments
Can you paste the output of 'kubeadm init' ? |
Here you go. nothing running on port 8080. [root@node01 ~]# kubeadm init |
I see the same on Ubuntu 16.04 also. Pasting command outputs (hoping to help debug).
Additionally, docker containers for the control plane are up.
Kubelet shows (the same?) problem:
Related to kubernetes/kubernetes#43815 ? |
CC @mikedanese (who suggested a patch) and @luxas (who summarized the problem at the end). |
I met the same error on CentOS 7,2.1511 before the error log looks like below:
just change the hope this will be helpful |
Thanks @jiangpengcheng. Maybe a different issue on CentOS then. |
@ParagDoke Can you share the steps you used to install kubeadm 1.7.4? I am facing the same issue as you did. Thanks! |
@jiangpengcheng my /etc/systemd/system/kubelet.service.d/10-kubeadm.conf file has following entry for cgroup, can you let me know what you change for this value? Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" |
@jainmnsh run docker info | grep Cgroup. That'll tell you what cgroup driver your docker is using, replace that value with systemd in the line Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" Anyways, I have the same issue but it is not a cgroup driver issue, I suspect it is because I am running behind a proxy. I can still pull the docker images and run them but when I curl to :6443/api/v1/....... I get a 403. The containers are trying to get at the api using the external ip and some proxy settings are not screwing it up? |
@thomas-oo thanks for responding. my cgroup is "cgroupfs", I have updated conf with changes, but still can't bypass it. I am not even running behind the proxy. just simple azure VM installed centOS. I didn't built any docker images yet I am just trying to run "kubeadm init" to initiate master machine. I am new to Kubernetes and can't move forward. appreciate your help in progressing further. |
@jainmnsh would you please show your output of |
@jainmnsh after you've replaced it, I forgot to mention to run |
Update on my issue: It was indeed a proxy issue, if anyone else was having the same scenario as myself: If your kubeadm init is hanging but when you run docker ps and the containers are running. If the public ip fails, check the logs of your controller-manager by doing docker logs In my case, this was a proxy problem because when I tried to curl my apiserver at How I fixed it: then do systemctl daemon-reload, and systemctl restart docker. Do docker info and look at No Proxy to confirm that your machine's ip shows up there. Then stop kubeadm init if you still had it running, do kubeadm reset, then do kubeadm init again. Hopefully it works! BTW: I'm not the best at configuring these proxy settings, if there is a better way to do this, please let me know |
Notice presence of "-unstable". Others, sorry for responding with Ubuntu specific steps on a CentOS related thread. |
@jainmnsh After changing docker's cgroup driver to systemd, did you restart both docker and kubelet? If it's still not working, can you paste the apiserver logs? You can see them by looking for the docker container: |
@jamiehannaford it worked after changed cgroup driver and restart both docker and Kubelet. thank you for your help. |
@jainmnsh Awesome. I've created a doc for this requirement, so I'm going to go ahead and close this. If you run into any more problems, please comment and I'll reopen this thread. |
Is this a request for help?
If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.
What keywords did you search in kubeadm issues before filing this one?
[apiclient] Created API client, waiting for the control plane to become ready stuck, I search through all open /close issues on this subject but I couldnt find on running cluster on 1.7.4 version.
If you have found any duplicates, you should instead reply there and close this page.
If you have not found any duplicates, delete this section and continue on.
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-03T06:43:48Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-03T07:00:21Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
kubeadm version: &version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-03T06:43:48Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
[root@node01 ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-03T07:00:21Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[root@node01 ~]# more /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
uname -a
):Linux node01 3.10.0-514.26.2.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
What happened?
when I am running kubeadm init the process stuck at [apiclient] Created API client, waiting for the control plane to become ready
What you expected to happen?
I would like my kubeadm init to initialize the ready as per documentation on below link
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
How to reproduce it (as minimally and precisely as possible)?
I am following the instruction as per and setup kubeadm, kubectl and updated but having issues
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
Anything else we need to know?
The text was updated successfully, but these errors were encountered: