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、执行以下命令:
echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> ~/.bash_profile
使修改生效:
source ~/.bash_profile
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。