问题描述:

 

安装flannel插件时报错

Linux下搭建k8s集群时,报错:The connection to the server localhost:8080 was refused
 

 

在没有配置config文件时,kube-apiserver默认使用的是localhost,解决方法如下:

 

普通用户执行如下操作:

[[email protected] ~]# mkdir -p $HOME/.kube
[[email protected] ~]# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
[[email protected] ~]# sudo chown $(id -u):$(id -g) $HOME/.kube/config

 

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-03-07
  • 2022-02-19
  • 2022-12-23
相关资源
相似解决方案