kubernetes初始化错误

kunernetes初始化命令:

kubeadm init --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/16 --apiserver-advertise-address=0.0.0.0 --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

报错:
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

解决:
修改配置文件/etc/docker/daemon.json,添加以下行:

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

原因:

这是cgroup驱动问题。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注