美文网首页
[kubelet-check] The HTTP call eq

[kubelet-check] The HTTP call eq

作者: 落叶寒轩 | 来源:发表于2022-03-08 17:25 被阅读0次

虚拟机安装k8s时,初始化K8S master时报错,报错信息如下

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.

问题分析:
我的Docker是用yum安装的,docker的cgroup驱动程序默认设置为systemd。默认情况下Kubernetes cgroup为system,我们需要更改Docker cgroup驱动,

解决方法
# 添加以下内容
vim /etc/docker/daemon.json
{
  "exec-opts": ["native.cgroupdriver=systemd"]
}

# 重启docker
systemctl restart docker
# 重新初始化
kubeadm reset # 先重置

然后重新安装即可

相关文章

网友评论

      本文标题:[kubelet-check] The HTTP call eq

      本文链接:https://www.haomeiwen.com/subject/mlcnrrtx.html