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

解决方法:kube-apiserver启动失败,重启即可!!!
[root@master ~]# systemctl status kube-apiserver
● kube-apiserver.service - Kubernetes API Server
   Loaded: loaded (/usr/lib/systemd/system/kube-apiserver.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2019-03-18 14:55:11 CST; 9min ago
     Docs: https://github.com/kubernetes/kubernetes
  Process: 6446 ExecStart=/opt/kubernetes/bin/kube-apiserver $KUBE_APISERVER_OPTS (code=exited, status=1/FAILURE)
 Main PID: 6446 (code=exited, status=1/FAILURE)

Mar 18 14:55:11 localhost.localdomain kube-apiserver[6446]: --vmodule moduleSpec                                      comma-separated list of pattern=N settings for file-filtered logging
Mar 18 14:55:11 localhost.localdomain kube-apiserver[6446]: --watch-cache                                             Enable watch caching in the apiserver (default true)
Mar 18 14:55:11 localhost.localdomain kube-apiserver[6446]: --watch-cache-sizes strings                               List of watch cache sizes for every resource (pods, nodes, etc.), comma sepa...ber. It take
Mar 18 14:55:11 localhost.localdomain kube-apiserver[6446]: error: failed to create listener: failed to listen on 192.168.247.211:6443: listen tcp 192.168.247.211:6443: bind: cannot assign requested address
Mar 18 14:55:11 master systemd[1]: kube-apiserver.service holdoff time over, scheduling restart.
Mar 18 14:55:11 master systemd[1]: Stopped Kubernetes API Server.
Mar 18 14:55:11 master systemd[1]: start request repeated too quickly for kube-apiserver.service
Mar 18 14:55:11 master systemd[1]: Failed to start Kubernetes API Server.
Mar 18 14:55:11 master systemd[1]: Unit kube-apiserver.service entered failed state.
Mar 18 14:55:11 master systemd[1]: kube-apiserver.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

[root@master ~]# systemctl start kube-apiserver

原文地址:https://www.cnblogs.com/Dev0ps/p/10553800.html

时间: 2024-10-17 02:57:41

The connection to the server localhost:8080 was refused - did you specify the right host or port?的相关文章

kubectl error: The connection to the server localhost:8080 was refused

did you run below commands after kubeadm init To start using your cluster, you need to run (as a regular user): sudo cp /etc/kubernetes/admin.conf $HOME/ sudo chown $(id -u):$(id -g) $HOME/admin.conf export KUBECONFIG=$HOME/admin.conf ref: https://gi

k8s遇坑:The connection to the server k8s-api.virtual.local:6443 was refused - did you specify the right host or port?

k8s坑The connection to the server localhost:8080 was refused - did you specify the right host or port 2019年01月08日 17:21:06 金柱 阅读数:47 定义一个mysql的RC文件:mysql-rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: mysql spec: replicas: 1 select

ambari安装问题记录:Ambari Agent host cannot reach Ambari Server 'localhost:8080'.

在安装完ambari-server并配置之后,选定客户端进行指定安装的时候,发现总是遇到这一错误 Ambari Agent host cannot reach Ambari Server 'localhost:8080'. 我看了一下错误日志发现在从ambari-server传送到客户端的setupAgent.py脚本的main函数中的参数设置老是不对,如下所示: 156 def main(argv=None): 157 scriptDir = os.path.realpath(os.path.

虚拟机中MySQL连接问题:Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql

环境:在VirtualBox中安装了Ubuntu虚拟机,网络使用了NAT模式,开启了端口转发. 局域网内其他计算机访问虚拟机中的MySQL Server出现两个问题: Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql 1.解决Lost connection to MySQL server

问题:eclipse配置server以后启动正常,但localhost:8080访问失败

现像:eclipse-->services tab-->添加server,启动正常,但是http://localhost:8080访问失败,返回值为404 解决:双击server,进入配置页面,如下图, 选中红框内的radio,重启server,问题解决.

eclipse启动tomcat, http://localhost:8080无法访问的解决方案

问题:: tomcat在eclipse里面能正常启动,但在浏览器中访问http://localhost:8080/不能访问tomcat管理页面,且报404错误.同时其他项目页面也不能访问.访问的时候出现下列页面: 现在关闭eclipse里面的tomcat,在tomcat安装目录下双击startup.bat手动启动tomcat服务器.访问htt://localhost:8080/能正常访问下面熟悉的tomcat管理页面,如下所示: 问题原因: 由于eclipse将tomcat的项目发布目录(tom

eclipse配置tomcat,访问http://localhost:8080出现404错误

问题:通过eclipse来启动tomcat会碰到"访问http://localhost:8080出现404错误"这样的问题,需要在eclipse中进行一系列的设置才行. 解决:打开eclipse的server视图,双击你配置的那个tomcat,打开编辑窗口,查看server locations,看看是否选择了第一个选项(默认是第一个选项),即use workspace metadata(does not modify tomcat instation), 你应该选择第二个选项,use

2013 - Lost connection to MySQL server at 'reading initial communication packet' 错误解决

一.操作与状态 当使用MySQL客户端连接localhost本地数据库时,连接不上,报错.(使用Tomcat连接数据库时可以连接上,但需要很长的请求时间.) 二.原因与解决办法 关于这个问题网上的解决方法基本个不相同,并且答案也比较少,最后发现是由于自己手欠在电脑管家的"网络优化中"禁用了MySQL程序的网络,恢复连接即可. 2013 - Lost connection to MySQL server at 'reading initial communication packet'

访问localhost:8080 提示:位于 XDB 的服务器 localhost 要求用户名和密码 (引用)

http://xiehx163.blog.163.com/blog/static/6146679620096792135505/ 前几天开始用oracle进行WEB开发.机器装的是tomcat6.0 和oracle10g. 项目开发好后,当我启动tomcat服务器,且把oracle10g相应的服务启动时(因为是用orcle10g作数据存储的,使用前当然要开启oracle10g相应的服务才能启动成功),访问htt://localhost:8080/blog时,奇怪的现象出现了. 弹出一个对话框: