问题“The connection to the server....:6443 was refused - did you specify the right host or port?”的处理!
问题“The connection to the server <master>:6443 was refused - did you specify the right host or port?”的处理!
一、故障产生
在不关闭kubernets相关服务的情况下,对kubernets的master节点进行重启。(模拟服务器的异常掉电)
二、故障状况
启动后无法远程到kubernets的dashbaord,后进行如下命令报错。
# kubectl get nodes
The connection to the server <master>:6443 was refused - did you specify the right host or port?
故障处理:
1.检查环境变量情况(正常)
# env | grep -i kub
2.检查docker服务(正常)
# systemctl status docker.service
3.检查kubelet服务(表面正常)
# systemctl status kubelet.service
4.查看端口是是否被监听(没有监听)
# netstat -pnlt | grep 6443
5.检查防火墙状态(正常)
# systemctl status firewalld.service
6.查看日志
# journalctl -xeu kubelet
这里分析,应该是镜像的问题。
6.1 重新导入一下API镜像即可。
# docker load -i kube-apiserver-amd64_v1.9.0.tar
6.2 重启docker和kubelet服务
# systemctl restart docker.service# systemctl restart kubelet.service
6.3 检查服务(此时正常)
# kubectl get nodes
至此,故障处理完成。
问题“The connection to the server....:6443 was refused - did you specify the right host or port?”的处理!相关推荐
- The connection to the server master:6443 was refused - did you specify the right host or port?
The connection to the server master:6443 was refused - did you specify the right host or port? kuber ...
- 问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?
具体排查过程是真的忘了,前后开关了十几个网页. 1.查看kubelet是否正常 systemctl status kubelet 2.kubelet未启动的情况,查看kubelet日志 journal ...
- The connection to the server 192.168.229.131:6443 was refused - did you specify the right host or po
虚拟机关机后,k8s出现这个问题,查看日志 输入命令:journalctl -xefu kubelet 会看到下面的报错日志信息 --cgroups-per-qos enabled, but --cg ...
- 集群断电重启The connection to the server apiserver.k8s:6443 was refused - did you specify the right
1.断电之后发现集群没有启动起来 The connection to the server apiserver.k8s:6443 was refused - did you specify the r ...
- k8s: the connection to the server 192.168.2.94:6443 was refused 解决方法
现象: 安装完成k8s服务之后,kubectl get pods的时候报错,提示如下: the connection to the server 192.168.2.94:6443 was refus ...
- k8s-问题:[root@master log]# kubectl get node The connection to the server 192.168.0.105:6443 was refus
记一次测试虚拟机异常关机导致的问题 关于[root@master log]# kubectl get node The connection to the server 192.168.0.105:6 ...
- k8s The connection to the server 10.209.213.55:443 was refused - did you specify the right host or p
今天在Kubernetes的从节点上运行命令[kubectl]出现了如下错误 [root@p22650v /home/zhu/k8s]# kubectl create -f k8stranscod ...
- k8s--重启后报错:The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r
执行这个命令报错:The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r k ...
- Data source rejected establishment of connection, message from server: Too many connections解决办法...
异常名称 //数据源拒绝从服务器建立连接.消息:"连接太多" com.MySQL.jdbc.exceptions.jdbc4.MySQLNonTransientConnection ...
最新文章
- BugkuCTF web3
- 【BZOJ5470】【FJOI2018】—所罗门王的宝藏(BFS)
- HttpClient、OKhttp、RestTemplate对比
- 三大linux系统对比
- bond的主备模式_linux-rhel7配置网卡bond双网卡主备模式
- inputstream java_Java实现inputstream流的复制
- 从块结构谈表的存储参数与性能之间的关系
- Java并发编程基础-ReentrantLock的机制
- ITIL 4: 培训与认证
- C#编写上位机驱动运动控制板卡
- 弹性理论法研究桩基受力计算公式_土力学与地基基础简答题
- 希捷7200.11固件门完全DIY修正方法! 不用几块钱, DIYers请进!!!
- 【软件设计】BDD由内而外采用策略
- Java中将List分组到Map中算法(可用于android联系人拼音分组)
- (五十三)Credit VaR的计算
- 外语_ください_五十音图
- 表单域修饰符numebr、trim、lazy
- 特殊格式的时间读取并排序
- 信息安全考研和就业的选择分析
- 循环神经网络LSTM论文解读