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