当前位置: 首页 > news >正文

[kubelet-check] It seems like the kubelet isn‘t running or healthy.

执行k8s时报错:

[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/heal
在这里插入图片描述
**

解决办法如下:

[root@k8smaster ~]# vim /etc/docker/daemon.json

添加一行:“exec-opts”: [“native.cgroupdriver=systemd”],注意上一行需要添加一个逗号

{
“registry-mirrors”:
[“https://docker.1panel.live”,
“https://hub.rat.dev”,
“https://docker.actima.top”,
“https://docker.1ms.run”,
“https://docker.aityp.com”,
“https://docker.xuanyuan.me”,
“https://docker-registry.nmqu.com”,
“https://docker.hlmirror.com”,
“https://docker.tbedu.top”
],

"exec-opts": ["native.cgroupdriver=systemd"]

}

重启docker服务

[root@k8smaster ~]# systemctl daemon-reload
[root@k8smaster ~]# systemctl restart docker kubelet containerd

初始化成功啦
在这里插入图片描述

相关文章:

  • 基于Python+Sqlite实现的选课系统
  • 如何查看java的字节码文件?javap?能用IDEA吗?
  • Ubuntu 下 nginx-1.24.0 源码分析 - ngx_process_options
  • 优雅地使用枚举参数,让项目Spring Boot项目更加优雅
  • 安装SSL证书的步骤,提高网站安全性与用户信任度
  • fps僵尸:12.丧尸伤害检测
  • DeepSeek 云原生分布式部署的深度实践与疑难解析—— 从零到生产级落地的全链路避坑指南
  • Matlab 移动最小二乘法(MLS,一维)
  • Java数据结构第十二期:走进二叉树的奇妙世界(一)
  • linux网络安全设置
  • 网络安全:DeepSeek已经在自动的挖掘漏洞
  • 关于协同显著性物体检测的思考
  • C语言-----操作符的分类
  • 详细介绍下软件生命周期的各个阶段以及常见的软件生命周期模型
  • ASP.NET JWT认证失败响应:从默认到自定义的优雅改造
  • MacOS下使用Ollama本地构建DeepSeek并使用本地Dify构建AI应用
  • 【Python爬虫(28)】爬虫时代,数据安全的坚盾与隐私保护的密锁
  • 使用Python和正则表达式爬取网页中的URL数据
  • 【Quest开发】玩家传送移动转向配置
  • 支付+DeepSeek:重新定义支付行业
  • 创意网红墙图片/企业seo排名有 名
  • 做王境泽表情的网站/个人怎么做百度竞价
  • 做爰视频在线观看免费网站/网络营销的应用研究论文
  • 做网站模板的海报尺寸多少钱/电商运营数据六大指标
  • 品牌网站建设目标/深圳英文网站推广
  • 济南正规网站建设公司哪家好/百度推广登陆平台