原文:使用二进制方式安装K8S时使用kubectl命令报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?

解决思路: kubectl 默认从 .kube config 配置文件获取访问 kube apiserver 地址 证书 用户名等信息,如果没有配置该文件,或者该文件个别参数配置出错,执行命令时出错:The connection to the server localhost: was refused did you specify the right host or port 解决办法: 查看该 ...

2019-11-07 18:22 0 946 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM