Cauchy
我看过了,是生成的etcd.env文件配置信息有问题
ETCD_LISTEN_CLIENT_URLS
ETCD_LISTEN_PEER_URLS
这两个字段监听IP导致的,调整成0.0.0.0后可以正常启动
但是我etcd启动后k8s还是无法正常启动
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder “/etc/kubernetes/manifests”
[control-plane] Creating static Pod manifest for “kube-apiserver”
[control-plane] Creating static Pod manifest for “kube-controller-manager”
[control-plane] Creating static Pod manifest for “kube-scheduler”
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory “/etc/kubernetes/manifests”. This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.
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 running Kubernetes containers by using crictl: - ‘crictl –runtime-endpoint unix:///run/containerd/containerd.sock ps -a | grep kube | grep -v pause’ Once you have found the failing container, you can inspect its logs with: - ’crictl –runtime-endpoint unix:///run/containerd/containerd.sock logs CONTAINERID’error execution phase wait-control-plane: couldn’t initialize a Kubernetes clusterTo see the stack trace of this error execute with –v=5 or higher: Process exited with status 115:18:27 CST failed: [k8s-master]