报错: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.
1.关闭交换分区
#查看现有的交换分区
root@master1:~# swapon -s
Filename Type Size Used Priority
/dev/sda2 partition 3906556 1036 -2
#关闭所有的交换分区
root@master1:~# swapoff -a
#再次查看 已经没有打开的交换分区了
root@master1:~# swapon -s
- reset k8s 然后再次初始化
root@master1:~# kubeadm reset
root@master1:~# kubeadm join 192.168.124.13:6443 --token l9u5pi.1gayyedhjsa8uchn --discovery-token-ca-cert-hash sha256:729d85453ae80664618f5278030833ad858e7608956276b8 --cri-socket unix:///var/run/cri-dockerd.sock