1、初始化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/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 conditionThis 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 disabledIf 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 cluster
To see the stack trace of this error execute with --v=5 or higher

2、修改docker配置文件

vi /etc/docker/daemon.json

添加以下内容

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

3、重启docker

systemctl restart docker

4、重启kubelet

systemctl restart kubelet

初始化k8s时,报错[kubelet-check] It seems like the kubelet isn‘t running or healthy.相关推荐

  1. kubeadm初始化集群报错:kubelet driver: “cgroupfs“ is different from docker cgroup driver: “systemd“

    kubeadm初始化集群报错:   报错信息如下: [kubelet-check] It seems like the kubelet isn't running or healthy. [kubel ...

  2. MYSQL(mysqld --initialize --console初始化的时候报错:Can‘t create directory ‘C:\web\mysql-8.0.11\data\‘)

    标题MYSQL安装报错 原因:在MYSQL (mysqld --initialize --console)初始化的时候报错: mysqld: Can't create directory 'C:\we ...

  3. 日常问题——初始化Hive仓库报错com.google.common.base.Preconditions.checkArgument

    问题描述: 初始化Hive仓库报错Exception in thread "main" java.lang.NoSuchMethodError: com.google.common ...

  4. Windos环境下kafka配置启动Zookeeper时,报错:Invalid config, exiting abnormally.

    Windos环境下kafka配置启动ZooKeeper时,报错:Invalid config, exiting abnormally. 执行命令: D:\kafkaOnWindows\kafka_2. ...

  5. 联想笔记本X1开机报错0271:Check Date and Time setting,系统无限重启

    联想笔记本X1开机报错0271:Check Date and Time setting 按f1没反应,按f12可以进去但是进去后不管按什么系统都是重启,无限重启系统 解决方法: 开机,拔掉适配器,在出 ...

  6. linux执行.sh文件时,报错:XXX.sh: Permission denied(没有权限)

    linux执行.sh文件时,报错:XXX.sh: Permission denied(没有权限) 解决方法:修改对该文件的权限 例如报错: bash: ./zkServer.sh: Permissio ...

  7. gpt磁盘标签linux,解决安装CentOS6.5时 报错 提示“sda 必须有一个GPT磁盘标签”

    解决安装CentOS6.5时 报错 提示"sda 必须有一个GPT磁盘标签" 今天想在thinkpad t430u上安装CentOS6.5 时总共遇到了两个问题 1> u盘安 ...

  8. 支付宝支付宝报错sign check fail

    支付宝支付宝报错sign check fail: check Sign and Data Fail 想不通,商户密钥商户公钥都是正确的. 支付宝公钥是下载的demo里面本来就有的,原本以为这个是一样的 ...

  9. 安装teamveaver时 报错 未安装软件包 libqt5qml5 记录一下

    安装teamveaver时 报错 未安装软件包 libqt5qml5 记录一下 lgyuWT 2020-11-11 00:43:30 540 收藏 分类专栏: ubuntu报错记录 文章标签: ubu ...

最新文章

  1. Python 之父立 Flag:明年要把 Python 速度提高 2 倍!
  2. Google 是如何定制 Material 主题的?
  3. qt combox 向上弹出_一睹芳容!人类首次拍到活的公羊角乌贼 手臂和触须向上飞速穿过水柱...
  4. Java数据结构Map遍历和排序
  5. APM - Hello Javaagent
  6. 【NLP实战系列】朴素贝叶斯文本分类实战
  7. 怎么设置滚轮拖动_解决三斜线表头一拖动就变形的问题,再也不用一次一次的调整了...
  8. python编程思维导图_用来梳理 Python 编程核心知识15张思维导图
  9. spring系列-注解驱动原理及源码-bean组件注册
  10. C++:17---sizeof运算符
  11. 订单金额等字段设置decimal时,要禁止为负数
  12. union all查询统计总数量
  13. 安卓桌面壁纸_安卓视频桌面哪个好用 让手机桌面更炫酷
  14. 【极客】神器——常用的一些小工具
  15. tinymce 上传本地视频
  16. 斯坦福大学公开课IOS 7 学习笔记(2)
  17. 《MIT科技评论》“35位35岁以下科技创新青年”名单出炉!AI领域有5人入选 | 2020中国区...
  18. python写歌词解析器 王菲-传奇
  19. e4a打开java源代码_E4A源码怎么使用?E4A源代码用什么打开?
  20. 下载centOS,下载各种linux版本的镜像,来这里!

热门文章

  1. 以java为扩展名_Java源程序文件的扩展名为.java。
  2. 六进制计数器的设计(详解)
  3. HTML5+CSS3-边框背景图、多背景图、CSS选择器、网络字体、边框背景图片、过渡、放大、旋转
  4. 2020年4月14日
  5. Java用户账号密码创建登录
  6. win10计算器_30年的老树又开新花!新一代Win10记事本详细体验
  7. 【CXY】JAVA基础 之 语法基础
  8. Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
  9. 红楼梦人物关系 python_如何用Python来理一理红楼梦里的那些关系
  10. 《大数据原理:复杂信息的准备、共享和分析》一一1.3 自动编码 格物致知。...