1.the server localhost:8080 was refused
【问题-master】The connection to the server localhost:8080 was refused - did you specify the right host or port?
1.解决方法
#【master执行】
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
source ~/.bash_profile
kubelet报错
【报错】 Process: 12356 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
【解决-推荐】修改Docker及kubelet的Cgroup Driver https://www.codeleading.com/article/44794987257/
【解决】https://blog.csdn.net/qq_19734597/article/details/96296339
kubeadm init 报错
failed with error: Get “http://localhost:10248/healthz”: dial tcp 127.0.0.1:10248: connect: connection refused. 【解决】https://blog.csdn.net/qq_44895681/article/details/107413950