解决方法1:#!/bin/bashswapoff -asystemctl start kubeletdocker start (docker ps -a -q)docker start (docker ps -a -q
原创 2022-05-30 20:22:02
4240阅读
一、概述1、k8s有时候会报错Theconnectiontotheserverip:6443wasrefuseddidyouspecifytherighthostorport,本文档提供几种可能产生该报错的原因和排障思路。三、发现问题使用任意Kubectl命令会报错:Theconnectiontotheserverip:6443wasrefuseddidyouspecifytherighthost
原创 精选 2022-12-09 09:50:01
10000+阅读
1点赞
一、概述 1、k8s有时候会报错The connection to the server ip:6443 was refused - did you specify the right host or port ,本文档提供几种可能产生该报错的原因和排障思路。二、发现问题 使用任意Kubectl 命令会报错:The connection to the server ip:6443 was refu
原创 2023-03-25 17:50:56
10000+阅读
2点赞
今天在Kubernetes的从节点上运行命令【kubectl】出现了如下错误 [root@k8snode1 kubernetes]# kubectl get pod The connection to the server localhost:8080 was refused - did you s
转载 2019-12-31 00:14:00
1953阅读
2评论
具体排查过程是真的忘了,前后开关了十几个网页。1、查看kubelet是否正常 systemctl status kubelet2、kubelet未启动的情况,查看kubelet日志 journalctl -x
原创 2022-05-23 09:50:22
729阅读
问题产生 k8s 虚拟机重启之后,使用 kubectl get nodes 命令报出如下错误: # kubectl get nodes The connection to the server <master>:6443 was refused - did you specify the right
原创 2022-06-02 17:19:30
6884阅读
1 主要是运行这个命令 alias kubectl='kubectl --kubeconfig=/etc/kubernetes/kubelet.conf'问题解决。 同时也用到如下命令: passwd kubeusr # 改kubeusr的密码 当在终端执行sudo命令时,系统提示“luckchen
转载 2018-12-05 21:40:00
234阅读
2评论
在node节点执行kubectl get pods 会报:The connection to the server localhost:8080 was refused - did you specify the right host or port?# 在从节点执行 复制admin.conf 到 从节点scp root@c208:/etc/kubernetes/admin.c...
原创 2021-08-25 11:14:24
1195阅读
一、问题The connection to the server localhost:8080 was refused - did you specify the right host or port?二、原因kubectl命令需要使用kubernetes-admin来运行,但是从节点没有这个文件三、解决方法1. 主节点将其【/etc/kubernetes/admin.conf】文件拷贝到从节点相同目录下scp /etc/kubernetes/admin.conf ..
原创 2021-06-17 12:37:42
7755阅读
在node节点执行kubectl get pods 会报:The connection to the server localhost:8080 was refused - did you specify the right host or port?# 在从节点执行 复制admin.conf 到 从节点scp root@c208:/etc/kubernetes/admin.c...
原创 2022-02-18 11:05:31
764阅读
今天在Kubernetes的从节点上运行命令【kubectl】出现了如下错误: [root@k8snode1 kubernetes]# kubectl get pod The connection to the server localhost:8080 was refused - did you
转载 2019-10-09 21:19:00
747阅读
2评论
一、问题The connection to the server localhost:8080 was refused - did you specify the right host or port?二、原因kubectl命令需要使用kubernetes-admin来运行,但是从节点没有这个文件三、解决方法1. 主节点将其【/etc/kubernetes/admin.conf】文件拷贝到从节点相同目录下scp /etc/kubernetes/admin.conf ..
我的原因是 k8s升级work工作节点的时候报的这个,解决办法,设置维护模式只能在mater节点设置,work节点没有权限,所以报这个 ...
转载 2021-10-19 22:19:00
634阅读
2评论
有可能是docker 没有启动,systemctl start docker
原创 2020-12-12 09:19:08
185阅读
过年回家整理集群相关的笔记,发现集群不能用了.简单记录解决办法,其实就是证书过期了,但是提示和之前的不一样
原创 2024-03-01 10:25:50
178阅读
root@k8s-master:~# kubectl get node The connection to the server localhost:8080 was refused - did you specify the right host or port? 原因:使用kubeadm安装的k
原创 2021-08-05 15:03:12
3810阅读
虚拟机非正常关机后,k8s集群不可用 获取节点,报如下错,kubectl get node 查看env:env | grep -i ku
原创 2023-01-30 13:23:15
1070阅读
1. 现象:安装K8S mananger后,执行kubectl get nodes始终出错[root@k8s-master1 sysctl.d]#  kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port?2. 原因
Connection RefusedYou get a ConnectionRefused Exception when there is a machine at the address specified, but there is no program listening on the specific TCP port the client is using -and there ...
原创 2023-05-12 21:36:00
925阅读
Kubernetes (K8s) 是一个开源的容器编排平台,可以管理容器化应用程序的部署、扩展和自动化操作。当我们在使用Kubernetes 集群时,有时可能会遇到 "k8s 6443 refused" 的问题,这通常是因为 API Server 拒绝连接导致的。在本篇文章中,我将详细介绍如何解决这个问题。 首先,让我们来看一下解决 "k8s 6443 refused" 的流程: | 步骤 |
原创 2024-03-15 11:27:16
262阅读
  • 1
  • 2
  • 3
  • 4
  • 5