語(yǔ)法
[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'
運(yùn)行此命令以恢復(fù)通過(guò) 'kubeadm init' or 'kubeadm join' 對(duì)主機(jī)所做的任何修改
The "reset" command executes the following phases:
此 reset 命令執(zhí)行以下過(guò)程
```
preflight Run reset pre-flight checks
運(yùn)行重置飛行前檢查
update-cluster-status Remove this node from the ClusterStatus object.
從 ClusterStatus 對(duì)象中刪除此節(jié)點(diǎn)
remove-etcd-member Remove a local etcd member.
刪除本地 etcd 成員
cleanup-node Run cleanup node.
指定清理節(jié)點(diǎn)
```
用法:
kubeadm reset [flags]
kubeadm reset [command]
可用命令:
phase Use this command to invoke single phase of the reset workflow
使用此命令可以調(diào)用重置工作流的單個(gè)階段
Flags:
--cert-dir string The path to the directory where the certificates are stored.
存儲(chǔ)證書(shū)的目錄的路徑
If specified, clean this directory. (default "/etc/kubernetes/pki")
如果已指定,請(qǐng)清除此目錄魁淳。 (默認(rèn)“/ 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.
重置節(jié)點(diǎn)而不提示確認(rèn)收苏。
-h, --help help for reset
顯示幫助信息
--ignore-preflight-errors strings A list of checks whose errors will be shown as warnings.
將錯(cuò)誤顯示為警告,也就是忽略某些錯(cuò)誤以繼續(xù)安裝
Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
例如:IsPrivilegedUser,Swap实束,如果值為 all 將忽略所有錯(cuò)誤
--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.