ubuntu搭建k8s:The connection to the server localhost:8080 was refused – did you specify the right h…

内容分享6个月前发布
10 0 0
全能 AI 聚合平台 免费

一站式接入主流 AI 大模型,支持对话 · 生图 · 生视频,即开即用

ChatGPT Claude Gemini Grok DeepSeek 通义千问 Ollama
AI对话 AI生图 AI视频
免费使用 →

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

切换到root用户(如果密码不对自行百度)

su root

再执行一遍

sudo kubeadm reset
sudo kubeadm init
export KUBECONFIG=/etc/kubernetes/admin.conf
sudo kubectl apply -f canal.yaml
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

网络配置随意

sudo kubectl apply -f canal.yaml

© 版权声明

相关文章

暂无评论

none
暂无评论...