ops icon indicating copy to clipboard operation
ops copied to clipboard

ubuntu 18.04 install kubernetes fail, USE_MIRROR=true

Open farmercode opened this issue 6 years ago • 1 comments

这是我用ops安装kubernetes最后得到的结果! 安装机器: ubuntu 18.04 我在国内阿里云用ops也没有安装成功,USE_MIRROR=true已经设置了!

[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.0.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, e.g. docker.
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

farmercode avatar Aug 07 '19 08:08 farmercode

顺便一提在ubuntu下面,启动docker会失败

systemctl start docker

我在它前面增加下列命令就可以成功了!

 systemctl unmask docker.service
 systemctl unmask docker.socket

farmercode avatar Aug 07 '19 08:08 farmercode