添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

kubeadm init curl http localhost 10248 healthz failed with error

kubeadm 初始化失败:连接:被拒绝。
解决方案尝试以下
编辑 docker daemon.json

$ cat <<EOF | sudo tee /etc/docker/daemon.json
    "exec-opts": ["native.cgroupdriver=systemd"]
$ cat /etc/docker/daemon.json
    "exec-opts": ["native.cgroupdriver=systemd"]

重新启动守护进程并重新启动 docker 服务

$ sudo systemctl daemon-reload $ sudo systemctl restart docker

重置 kubeadm

$ sudo kubeadm reset
[reset] Reading configuration from the cluster...
[reset] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
W0109 03:27:04.555438   77187 reset.go:101] [reset] Unable to fetch the kubeadm-config ConfigMap from cluster: failed to get config map: configmaps "kubeadm-config" not found
[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.
[reset] Are you sure you want to proceed? [y/N]: y
        dlutzhangyi
        Kubernetes