The connection to the server localhost:8080 was refused - did you specify the right host or port?k8s

关于k8s类似于:The connection to the server localhost:8080 was refused - did you specify the right host or port?的toubleshooting

视频讲解:
K8s集群:The connection to the server localhost:8080 was refused
在minikube的环境下:可以通过运行minikube start --driver=docker的方式解决。

在这里插入图片描述

在Ubuntu配置的k8s集群中:第一次配好后重启可能会报The connection to the server MasterIP:6443 was refused. - did you specify the right host or port?

这个问题归根结底是kubectl配置的问题导致的。网上大带哦解决方案是重新执行下面代码片段。
我执行后没有用。

如果你配完集群,重启后发现在普通用户下无法执行kubectl,这可能是没有设置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值