使用minikube安装kubernetes集群,报错如下:
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.1.1:10248: connect: connection refused.
Unfortunately, an error has occurred:
timed out waiting for the condition
This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- 'systemctl status kubelet'
- 'journalctl -xeu kubelet'
Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI.
Here is one example how you may list all Kubernetes containers running in docker:
- 'docker ps -a | grep kube | grep -v pause'
Once you have found the failing container, you can inspect its logs with:
- 'docker logs CONTAINERID'
error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster
$ journalctl -xeu kubelet
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.103138 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.203240 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.303379 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.404482 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.504834 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.605304 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.706166 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.807030 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:02 master kubelet[23204]: E1011 07:21:02.907808 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:03 master kubelet[23204]: E1011 07:21:03.008815 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:03 master kubelet[23204]: E1011 07:21:03.109049 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:03 master kubelet[23204]: E1011 07:21:03.209998 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
Oct 11 07:21:03 master kubelet[23204]: E1011 07:21:03.311051 23204 kubelet.go:2461] "Error getting node" err="node \"master\" not found"
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1970cad08664 25f8c7f3da61 "etcd --advertise-cl…" About a minute ago Exited (1) About a minute ago k8s_etcd_etcd-master_kube-system_060e1cbd7d34c6d6d354e6e76fc92e95_96
c1284b111a1d 8fa62c12256d "kube-apiserver --ad…" 2 minutes ago Exited (1) 2 minutes ago k8s_kube-apiserver_kube-apiserver-master_kube-system_f8984558b8e583d3d55984c4efeede19_18
还有这俩容器也一直启动不了,请问我该如何解决?
你的答案