Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能访问集群 #79

Open
baomanxi opened this issue Mar 27, 2023 · 6 comments
Open

不能访问集群 #79

baomanxi opened this issue Mar 27, 2023 · 6 comments

Comments

@baomanxi
Copy link

baomanxi commented Mar 27, 2023

The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
找不到命令可以重启它

[root@master bin]# ps -ef | grep kube-apiserver
root 4883 3189 0 21:45 pts/1 00:00:00 grep --color=auto kube-apiserver

[root@master bin]# sudo systemctl start kube-apiserver
Failed to start kube-apiserver.service: Unit not found.

[root@master bin]# kube-apiserver
-bash: kube-apiserver: command not found

@baomanxi
Copy link
Author

这也太不稳定了,跑着跑着 API server就没了

@baomanxi
Copy link
Author

[root@master ~]# kubectl get pods -A
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
[root@master ~]# The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

@connorzeng
Copy link

我的是虚拟机硬盘配置20G, 安装了一直没有api-server, 重新调整到50G, 一次性成功.

@soulerror
Copy link

我也是这个问题 你解决了吗

@wangtao92
Copy link

你好,解决这个问题了吗?我是在离线的arm架构的银河麒麟V10上装的,虚拟机一重启就所有的容器消失了,报这个错。

@wangtao92
Copy link

你好,解决这个问题了吗?我是在离线的arm架构的银河麒麟V10上装的,虚拟机一重启就所有的容器消失了,报这个错。

禁用swap分区就好了,我新安装了虚拟机,分区的时候不分swap分区,安装之后,重启虚拟机,集群正常启动,就不报这个错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants