小编Tho*_*hor的帖子

运行 k3s-killall.sh 脚本后如何启动 K3s 服务器

我的 K3s 集群正在运行以下 pod:

kube-system   pod/calico-node-xxxx                          
kube-system   pod/calico-kube-controllers-xxxxxx   
kube-system   pod/metrics-server-xxxxx
kube-system   pod/local-path-provisioner-xxxxx
kube-system   pod/coredns-xxxxx
xyz-system    pod/some-app-xxx
xyz-system    pod/some-app-db-xxx
Run Code Online (Sandbox Code Playgroud)

我想停止所有 K3s pod 并重置 containerd 状态,因此我使用了/usr/local/bin/k3s-killall.shwatch kubectl get all -A脚本,所有 pod 都停止了(至少除了消息之外我看不到任何内容The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

有人可以告诉我如何启动 k3s 服务器,因为现在在触发后kubectl get all -A我收到消息The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

附:

  • 当我运行k3s server …

kubernetes kubernetes-apiserver kubernetes-pod kubernetes-service k3s

11
推荐指数
1
解决办法
2万
查看次数