[kubelet-check] The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz‘ failed with error
·
[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.
在初始化Kubernetes节点时,出现这个问题解决
$ sudo mkdir /etc/docker
$ vi /etc/docker/daemon.json
# 输入以下信息就行了
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
],
"registry-mirrors": ["https://tdhp06eh.mirror.aliyuncs.com"]
}
更多推荐
所有评论(0)