介绍
这篇文章给大家分享的是有关kubeadm安装报错怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
kubeadm安装报错
现象:
由于1.15版本太低,想安装最新版本但升级需要逐个升级,所以放弃直接重新安装。先kubeadm重置,然后按照之前的步骤安装k8:
主节点kubeadm初始化报错如下:
[root@k01 ~] #, kubeadm init ——apiserver-advertise-address=10.129.42.131 ——image-repository registry.cn-hangzhou.aliyuncs.com/lfy_k8s_images ——kubernetes-version v1.21.0 ——service-cidr=10.96.0.0/16 pod-network-cidr=192.168.0.0/16 …… (控制平面),Using manifest  folder “/etc/kubernetes/manifests" (控制平面),Creating static  Pod manifest for “kube-apiserver" (控制平面),Creating static  Pod manifest for “kube-controller-manager" (控制平面),Creating static  Pod manifest for “kube-scheduler" [etcd], Creating static  Pod manifest for local etcd “拷贝/etc/kubernetes/manifests" [wait-control-plane], Waiting for 从而kubelet 用boot up 从而control plane as static Pods 得到directory “/etc/kubernetes/manifests"只却;能够还要take u p 用4 m0 [kubelet-check], Initial timeout of 40 s 通过。 [kubelet-check], It seems  like 从而kubelet 不# 39;t running 一、健康。 [kubelet-check],从而HTTP call equal 用& # 39;curl -sSL http://localhost: 10248/healthz& # 39;, failed with 错误:,Get “http://localhost: 10248/healthz":, dial tcp: ,lookup localhost 提醒8.8.8.8:53:,no such 主机。[kubelet-check], It seems like 从而kubelet 不# 39;t running 一、健康。 [kubelet-check],从而HTTP call equal 用& # 39;curl -sSL http://localhost: 10248/healthz& # 39;, failed with 错误:,Get “http://localhost: 10248/healthz":, dial tcp: ,lookup localhost 提醒8.8.8.8:53:,no such 主机。[kubelet-check], It seems like 从而kubelet 不# 39;t running 一、健康。 [kubelet-check],从而HTTP call equal 用& # 39;curl -sSL http://localhost: 10248/healthz& # 39;, failed with 错误:,Get “http://localhost: 10248/healthz":, dial tcp: ,lookup localhost 提醒8.8.8.8:53:,no such 主机。[kubelet-check], It seems like 从而kubelet 不# 39;t running 一、健康。 [kubelet-check],从而HTTP call equal 用& # 39;curl -sSL http://localhost: 10248/healthz& # 39;, failed with 错误:,Get “http://localhost: 10248/healthz":, dial tcp: ,lookup localhost 提醒8.8.8.8:53:,no such 主机。[kubelet-check], It seems like 从而kubelet 不# 39;t running 一、健康。 [kubelet-check],从而HTTP call equal 用& # 39;curl -sSL http://localhost: 10248/healthz& # 39;, failed with 错误:,Get “http://localhost: 10248/healthz":, dial tcp: ,lookup localhost 提醒8.8.8.8:53:no such 主机。 不幸的是,,an error  has 发生: timed out  waiting for 从而条件 却,能够error is  likely caused 通过: 安康;从而kubelet is  not 运行 安康;从而kubelet is  unhealthy due 用a misconfiguration of 从而node 拷贝some way (required cgroups 禁用) If 你断开连接;提醒a systemd-powered 系统,,你还要try 用troubleshoot 从而error with 从而following 命令: 安康;& # 39;systemctl status  kubelet& # 39; 安康;& # 39;journalctl -xeu  kubelet& # 39; 此外,,a control  plane component may have crashed 或是exited when started by 从而container 运行时。 用排除,list all  containers using your preferred container runtimes CLI。 Here is  one example 请;你may list all Kubernetes containers running 拷贝码头工人: 安康;& # 39;docker ps  -a |, grep kube |, grep -v 暂停# 39; null null null null nullkubeadm安装报错怎么办