首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >The connection to the server localhost:8080 was refused - did

The connection to the server localhost:8080 was refused - did

原创
作者头像
用户9323360
发布2022-01-01 20:43:36
发布2022-01-01 20:43:36
2.2K00
代码可运行
举报
文章被收录于专栏:k3sk3s
运行总次数:0
代码可运行

k3s集群,Node节点出现这个报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?

解决如下:

1、在Master节点运行下面命令将/etc/rancher/k3s/k3s.yaml文件拷贝到从节点相同录下。

2、修改k3s.yaml文件中的信息:

server: https://{masterIP}:6443为master节的IP。

3、执行以下命令:

代码语言:javascript
代码运行次数:0
运行
复制
echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> ~/.bash_profile

使修改生效:

source ~/.bash_profile

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档