问题“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?”的处理!相关推荐

  1. 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 ...

  2. 问题解决: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 ...

  3. 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 ...

  4. 集群断电重启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 ...

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. Data source rejected establishment of connection, message from server: Too many connections解决办法...

    异常名称 //数据源拒绝从服务器建立连接.消息:"连接太多" com.MySQL.jdbc.exceptions.jdbc4.MySQLNonTransientConnection ...

最新文章

  1. BugkuCTF web3
  2. 【BZOJ5470】【FJOI2018】—所罗门王的宝藏(BFS)
  3. HttpClient、OKhttp、RestTemplate对比
  4. 三大linux系统对比
  5. bond的主备模式_linux-rhel7配置网卡bond双网卡主备模式
  6. inputstream java_Java实现inputstream流的复制
  7. 从块结构谈表的存储参数与性能之间的关系
  8. Java并发编程基础-ReentrantLock的机制
  9. ITIL 4: 培训与认证
  10. C#编写上位机驱动运动控制板卡
  11. 弹性理论法研究桩基受力计算公式_土力学与地基基础简答题
  12. 希捷7200.11固件门完全DIY修正方法! 不用几块钱, DIYers请进!!!
  13. 【软件设计】BDD由内而外采用策略
  14. Java中将List分组到Map中算法(可用于android联系人拼音分组)
  15. (五十三)Credit VaR的计算
  16. 外语_ください_五十音图
  17. 表单域修饰符numebr、trim、lazy
  18. 特殊格式的时间读取并排序
  19. 信息安全考研和就业的选择分析
  20. 循环神经网络LSTM论文解读

热门文章

  1. Git和GitHub快速入门
  2. spark DAGScheduler、TaskSchedule、Executor执行task源码分析
  3. Linux基础篇_01_计算机概论
  4. JBPM工作流入门总结
  5. MySQL运维常用系统命令
  6. 多媒体融合通信平台促进公网和专网的互联互通
  7. 分享朋友圈QQ空间需要哪些参数
  8. Sqlserver备份存储过程
  9. inflate简介,LayoutInflater和inflate()方法的用法
  10. mongodb java 单例_Java单例MongoDB工具类