You are viewing documentation for Kubernetes version: v1.23
Kubernetes v1.23 documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.
概要
标记 Node 节点为控制平面节点
kubeadm init phase mark-control-plane [flags]
示例
# 将控制平面标签和污点应用于当前节点,其功能等效于 kubeadm init执行的操作。
kubeadm init phase mark-control-plane --config config.yml
# 将控制平面标签和污点应用于特定节点
kubeadm init phase mark-control-plane --node-name myNode
选项
| --config string | |
| kubeadm 配置文件的路径。 | |
| -h, --help | |
| mark-control-plane 操作的帮助命令 | |
| --node-name string | |
| 指定节点名称。 | |
从父命令继承的选项
| --rootfs 字符串 | |
| [实验] 到 '真实' 主机根文件系统的路径。 | |
最后修改 September 28, 2026 at 3:00 AM PST: feat: collapse version-dropdown deep links to the Kubernetes 文档说明 post URL (b4801e9)