创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机,ubuntu2204
Kubernetes版本信息
kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:58:30Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:51:45Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
nerdctl version
WARN[0000] unable to determine buildctl version: exec: “buildctl”: executable file not found in $PATH
Client:
Version: v1.7.6
OS/Arch: linux/amd64
Git commit: 845e989f69d25b420ae325fedc8e70186243fd93
buildctl:
Version:
Server:
containerd:
Version: v1.6.4
GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
runc:
Version: 1.1.1
GitCommit: v1.1.0-20-g52de29d7
KubeSphere版本信息
使用kk安装
问题是什么
在命令行下执行驱逐并删除了2个woker,2个master后,导致原有服务无法重启,新服务无法创建调度
如何安全的去处master节点呢
kubectl get nodes
NAME STATUS ROLES AGE VERSION
baidu-bj-ai-1 Ready worker 167d v1.26.0
baidu-bj-ai-2 Ready worker 17d v1.26.0
baidu-bj-k8s-master-1 Ready control-plane 183d v1.26.0
baidu-bj-k8s-master-2 Ready control-plane 3d11h v1.26.0
baidu-bj-k8s-master-3 Ready control-plane 3d11h v1.26.0
baidu-bj-k8s-worker-1 Ready worker 183d v1.26.0