创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
虚拟机,Centos7.5/,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
1.21。5
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
20.10
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
v2.1.1/v3.2.1。在线安装。使用kk安装
问题是什么
报错日志是什么,最好有截图。
有5个master
如何删除k8s-master4
[root@k8s-master1 ~]# ./kk delete node k8s-master4 -f config-sample.yaml
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
14:25:35 CST [DeleteNodeConfirmModule] Display confirmation form
Are you sure to delete this node? [yes/no]: yes
14:25:37 CST success: [LocalHost]
14:25:37 CST [ModifyConfigModule] Modify the KubeKey config file
14:25:37 CST message: [LocalHost]
Please check the node name in the config-sample.yaml or only support to delete worker
14:25:37 CST failed: [LocalHost]
error: Pipeline[DeleteNodePipeline] execute failed: Module[ModifyConfigModule] exec failed:
failed: [LocalHost] [ModifyConfig] exec failed after 1 retires: Please check the node name in the config-sample.yaml or only support to delete worker