-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
kubeadm init --kubernetes-version=v1.8.0 fail with connection refuse for Get http://localhost:10255/healthz #55281
Comments
@chenqy930
Note: Method 1 will trigger an email to the group. See the group list and label list. |
/area kubeadm
@chenqy930 Please place right pem files for |
I installed kubeadm/kubectl/kubelet/kubernetes -cni and loaded images(kube-apiserver-amd64 etc.) into docker, then kubeadm init, then I got the aforementioned result. Is there any steps I missed? And how can I fix this? |
@chenqy930 Any logs on |
That‘s it: Unfortunately, an error has occurred: This error is likely caused by that: You can troubleshoot this for example with the following commands if you're on a systemd-powered system: |
@chenqy930 The images defined in the manifest cannot be pulled. Please find out a way to download those needed images. |
I check the loaded images as follows, It seems they are already included. |
I found someone has the same problem here: His used a lower version of docker and then the problem was solved. Help.. T^T |
Is there any proxy in your environment? If so, you may want to add |
I don't have any proxy. |
It is due to the docker version. |
/close Since this is not a kubernetes issue. |
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
kubeadm init for initial cluster in version 1.8 fail with error:
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http://localhost:10255/healthz: dial tcp [::1]:10255: getsockopt: connection refused.
and the output of "journalctl -f -u kubelet.service" was:
-- Logs begin at 二 2017-11-07 15:17:36 CST. --
11月 07 16:38:34 master systemd[1]: kubelet.service: Service hold-off time over, scheduling restart.
11月 07 16:38:34 master systemd[1]: Stopped kubelet: The Kubernetes Node Agent.
11月 07 16:38:34 master systemd[1]: Started kubelet: The Kubernetes Node Agent.
11月 07 16:38:34 master kubelet[119508]: I1107 16:38:34.348135 119508 feature_gate.go:156] feature gates: map[]
11月 07 16:38:34 master kubelet[119508]: I1107 16:38:34.348240 119508 controller.go:114] kubelet config controller: starting controller
11月 07 16:38:34 master kubelet[119508]: I1107 16:38:34.348252 119508 controller.go:118] kubelet config controller: validating combination of defaults and flags
11月 07 16:38:34 master kubelet[119508]: error: unable to load client CA file /etc/kubernetes/pki/ca.pem: open /etc/kubernetes/pki/ca.pem: no such file or directory
11月 07 16:38:34 master systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
11月 07 16:38:34 master systemd[1]: kubelet.service: Unit entered failed state.
11月 07 16:38:34 master systemd[1]: kubelet.service: Failed with result 'exit-code'.
11月 07 16:38:44 master systemd[1]: kubelet.service: Service hold-off time over, scheduling restart.
11月 07 16:38:44 master systemd[1]: Stopped kubelet: The Kubernetes Node Agent.
11月 07 16:38:44 master systemd[1]: Started kubelet: The Kubernetes Node Agent.
What you expected to happen:
kubeadm init success
How to reproduce it (as minimally and precisely as possible):
Lab Description:
VMName: Roles: IP Address:
master Master 192.168.41.136
node-1 Worker 192.168.41.133
node-2 Worker 192.168.41.134
node-3 Worker 192.168.41.135
Setup docker/kubectl/kubeadm/kubelet with version 1.8.0 for all node
On "kubernetes-ms" start command:
Anything else we need to know?:
cannot reach gcr.io due to network limitation.
Environment:
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.2", GitCommit:"bdaeafa71f6c7c04636251031f93464384d54963", GitTreeState:"clean", BuildDate:"2017-10-24T19:48:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
16.04.3 LTS (Xenial Xerus)
Kernel (e.g.
uname -a
):Linux master 4.10.0-28-generic readability: package comment #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Install tools:
Others:
The text was updated successfully, but these errors were encountered: