第一次执行kubeadm初始化集群提示和老师的一样成功了,但是通过kubectl命令查看集群状态时结果是"The connection to the server localhost:8080 was refused - did you specify the right host or port?",然后通过docker命令停止k8s并rm掉,重新执行初始化集群操作,提示如下图:,可见初始化命令提示很多ERROR,但是用docker命令能看到启动成功了,用"kubectl get pods --all-namespaces"查看集群状态还是提示"The connection to the server localhost:8080 was refused - did you specify the right host or port?"