关于Kubernetes-v1.23.6-初始化时报错[kubelet-check] It seems like the kubelet isn't running or healthy
笔者今天在对k8s,v1 23 6版本的的master节点使用如下命令进行初始化时[root@k8s-masterqq-5201351] kubead
笔者今天在对k8s,v1.23.6版本的的master节点使用如下命令进行初始化时
(资料图)
[root@k8s-master qq-5201351]# kubeadm init \> --apiserver-advertise-address 192.18.106.87 \> --image-repository registry.aliyuncs.com/google_containers \> --kubernetes-version v1.23.6 \> --service-cidr=10.96.0.0/12 \> --pod-network-cidr=10.224.0.0/16
遇到如下报错:
[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.[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 [::1]:10248: connect: connection refused.[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 [::1]:10248: connect: connection refused.[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 [::1]:10248: connect: connection refused.[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 [::1]:10248: connect: connection refused.[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 [::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 clusterTo see the stack trace of this error execute with --v=5 or higher
其核心报错,也就如下几条,最为主要的就是说,kubelet isn"t running or healthy.
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifes ts". This can take up to 4m0s[kubelet-check] Initial timeout of 40s passed.[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 [::1]:10248: connect: connection refused.
刚看到这个报错时,还是有一点懵的,但仔细一看,还好下面提出了一些排查方法,和可能的原因 ,其中有一点看起来很是有用
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
这个与docker的一个配置有关系,即要求将cgroups disabled,于是笔者尝试如下解决方法
到/etc/docker/daemon.json配置文件中,至少需要添加上如下一段内容(如果有其他配置选项也可以添加到花括号之中)
{"exec-opts":["native.cgroupdriver=systemd"]}
说明:docker默认使用的Cgroup Driver是cgroupfs,我们上面是将其修改成systemd,这些通过docker info可以看出
然后我们重启docker让配置生效,因为这才刚开始从master节点搭建,于是笔者再使用kubeadm reset重置
最后我们再进行kubadm初始化master节点时,就不会有报错了~
尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17378926.html
关键词:
笔者今天在对k8s,v1 23 6版本的的master节点使用如下命令进行初始化时[root@k8s-masterqq-5201351] kubead
e城e家中可以进行线上交燃气费,那么如何来操作呢?打开手机中的e城e家点击本地生活点击燃气普表点击去缴费
继今年3月昌平区两宗地、4月朝阳区和通州区两宗地成交之后,5月6日,北京2023年首批拟供应商品住宅用地完成
国际原子能机构专家团队正在密切监测局势,以了解这一事件对核安全和安保的任何潜在影响
本文内容是由小编为大家搜集关于日丰股份,以及的资料,整理后发布的内容,让我们赶快一起来看一下吧!日丰
中新网5月6日电据生态环境部官方微信消息,近日,生态环境部启动实施第三次海洋污染基线调查(以下简称三基
厦门佛事展门票需要买吗?答:不需要哦,展会免费开放,入场方式有:方式一:提前预登记。点击此处进行网上
1、《旅行的意义》陈绮贞《最佳损友》陈奕迅《送别》黑鸭子《再回首》姜育恒《遇见》孙燕姿《独家记忆》陈
1、创业需要有机遇。2、什么是机遇?其实机遇大部分都来源于新的事物,新事物的出现必然会有很多人不知道,
到今年的4月29日,《反食品浪费法》施行已满两年了。各家餐饮门店的执行情况做得怎么样呢?记者调查发现,
渭城区气象台2023年05月06日19时10分发布大雾黄色预警信号:预计下述地区未来12小时内将出现能见度小于500
5月5日,韶关市委副书记杨安队率韶关市“百县千镇万村高质量发展工程”指挥办及有关工作专班来到南雄,通过
星网锐捷(002396)05月06日在投资者关系平台上答复了投资者关心的问题。
为何越是想赚钱,越是抓不住?认清这4个财富本质,残酷却很真实,工资
入学要求:1、本市户籍儿童少年;2、小学(含一贯制学校小学部,下同):2016年9月1日至2017年8月31日出生
如若员工自愿放弃社保,用人单位可免责?随社保网小编来看看。按照我国有关法定,用人单位和职工应当参加基
1979年,PatrickSmith在美国创立了Mountainsmith,专注于背包的研发。Patrick非常热爱户
李稻葵:地方财政必须要重组了,还不要说还本利息都不足以覆盖,国债,李稻葵,地方债,科学家,商业银行,地方财
主料老鸡(1只)调料玉米油(适量)生姜(适量)干辣椒(4条)八角(1个)盐(适量)糖(1勺)老抽(适量)料酒(适量)花椒(
上证报中国证券网讯据中国信通院消息,日前,中国信息通信研究院政策与经济研究所互联网运行分析团队发布了
与新RAV4荣放的川西旅行报告
据“今日俄罗斯”(RT)报道,当地时间5日,欧盟理事会通过一项价值10亿欧元的援助措施,以向乌克兰武装部队
1、武器系-2偏转(提高拆当概率),-3强化割裂(个人选择,非常弱,不推荐)-2强化冲锋(PVP以外情
1、安置房,是政府进行城市道路建设和其他公共设施建设项目时,对被拆迁住户进行安置所建的房屋。2、安置的
跑步是一个让人愉快地过程。只要你跑起来,风从耳边响起,周围的景物向后掠过,调整好呼吸,向前向前,就是
Copyright 2015-2022 欧洲酒业网 版权所有 备案号:沪ICP备2022005074号-23 联系邮箱: 58 55 97 3@qq.com