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?

image.png

1.解决方法

  1. #【master执行】
  2. echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
  3. source ~/.bash_profile

image.png

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

【合集】https://latelee.org/kubernetes/k8s-deploy-issue.html