语法
[09:50:04 root@ceshi-01 ~ $]kubeadm reset --help
Run this to revert any changes made to this host by 'kubeadm init' or 'kubeadm join'
运行此命令以恢复通过 'kubeadm init' or 'kubeadm join' 对主机所做的任何修改
The "reset" command executes the following phases:
此 reset 命令执行以下过程
```
preflight Run reset pre-flight checks
运行重置飞行前检查
update-cluster-status Remove this node from the ClusterStatus object.
从 ClusterStatus 对象中删除此节点
remove-etcd-member Remove a local etcd member.
删除本地 etcd 成员
cleanup-node Run cleanup node.
指定清理节点
```
用法:
kubeadm reset [flags]
kubeadm reset [command]
可用命令:
phase Use this command to invoke single phase of the reset workflow
使用此命令可以调用重置工作流的单个阶段
Flags:
--cert-dir string The path to the directory where the certificates are stored.
存储证书的目录的路径
If specified, clean this directory. (default "/etc/kubernetes/pki")
如果已指定,请清除此目录。 (默认“/ etc / kubernetes / pki”)
--cri-socket string Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value;
use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
-f, --force Reset the node without prompting for confirmation.
重置节点而不提示确认。
-h, --help help for reset
显示帮助信息
--ignore-preflight-errors strings A list of checks whose errors will be shown as warnings.
将错误显示为警告,也就是忽略某些错误以继续安装
Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
例如:IsPrivilegedUser,Swap,如果值为 all 将忽略所有错误
--kubeconfig string The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. (default "/etc/kubernetes/admin.conf")
--skip-phases strings List of phases to be skipped
Global Flags:
--log-file string If non-empty, use this log file
--log-file-max-size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--rootfs string [EXPERIMENTAL] The path to the 'real' host root filesystem.
--skip-headers If true, avoid header prefixes in the log messages
--skip-log-headers If true, avoid headers when opening log files
-v, --v Level number for the log level verbosity
Use "kubeadm reset [command] --help" for more information about a command.
网友评论