标记节点为控制平面节点。
概要
标记节点为控制平面节点。
kubeadm init phase mark-control-plane [flags]
示例
# 将控制平面标签和污点应用于当前节点,其功能等效于 kubeadm init 执行的操作
kubeadm init phase mark-control-plane --config config.yaml
# 将控制平面标签和污点应用于特定节点
kubeadm init phase mark-control-plane --node-name myNode
选项
--config string | |
kubeadm 配置文件的路径。 |
|
--dry-run | |
不做任何更改;只输出将要执行的操作。 |
|
-h, --help | |
mark-control-plane 操作的帮助命令。 |
|
--node-name string | |
指定节点名称。 |
从父命令继承的选项
--rootfs 字符串 | |
[实验] 到 '真实' 主机根文件系统的路径。 |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 August 20, 2024 at 9:18 AM PST: [zh] Sync kubeadm-init-phase.md and its dependent files (a3c1b2ac89)