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

简介: 解决CentOS部署K3S环境8080端口异常

解决CentOS部署K3S环境8080端口异常

首先运行起来systemctl start k3s.service 不然不存在/etc/rancher/k3s/k3s.yaml
运行起来后编辑文件设置
     vim /etc/profile
     在底部增加新的环境变量 export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
     或者是
     echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> /etc/profile
使生效
  source /etc/profile

相关文章
|
网络协议 算法 关系型数据库
解读 MySQL Client/Server Protocol: Connection & Replication(上)
解读 MySQL Client/Server Protocol: Connection & Replication
167 0
|
5月前
|
网络安全
阿里云Could not connect to SITP host: smtp.163.com,port: 25;
阿里云Could not connect to SITP host: smtp.163.com,port: 25;
202 1
|
6月前
|
分布式计算 Hadoop 网络安全
[m1pro ] ssh: connect to host localhost port 22: Connection refused
[m1pro ] ssh: connect to host localhost port 22: Connection refused
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
|
SQL 存储 关系型数据库
解读 MySQL Client/Server Protocol: Connection & Replication(下)
解读 MySQL Client/Server Protocol: Connection & Replication
145 1
|
关系型数据库 MySQL
mysql远程连接 Host * is not allowed to connect to this MySQL server
mysql远程连接 Host * is not allowed to connect to this MySQL server
64 0
|
Kubernetes 网络协议 容器
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
971 0
|
关系型数据库 MySQL Docker
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
204 0
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
The connection to the server ip:6443 was refused - did you specify the right host or port
The connection to the server ip:6443 was refused - did you specify the right host or port
|
网络安全
mac下 ssh: connect to host localhost port 22: Connection refused
mac下 ssh: connect to host localhost port 22: Connection refused
746 0
mac下 ssh: connect to host localhost port 22: Connection refused