当前位置: 首页 > 工具软件 > kubeadm > 使用案例 >

kubeadm命令

越昊穹
2023-12-01

Usage:
  kubeadm [command]

Available Commands:
  alpha       Experimental sub-commands not yet fully functional.
  completion  Output shell completion code for the specified shell (bash or zsh).
  config      Manage configuration for a kubeadm cluster persisted in a ConfigMap in the cluster.
  help        Help about any command
  init        Run this command in order to set up the Kubernetes master. #建立一个master node。
  join        Run this on any machine you wish to join an existing cluster #初始化worker节点并加入到cluster
  reset       Run this to revert any changes made to this host by 'kubeadm init' or 'kubeadm join'.#还原所有kubeadm init 和kubeadm join操

  token       Manage bootstrap tokens.#管理kubeadm join的tokens
  upgrade     Upgrade your cluster smoothly to a newer version with this command.#升级k8s集群到一个新的版本
  version     Print the version of kubeadm#查看kubeadm版本

Flags:
  -h, --help      help for kubeadm
  -v, --v Level   log level for V logs

Use "kubeadm [command] --help" for more information about a command.

加入节点如果忘记kubeadm join,可以用下列命令查询。

kubeadm token create --print-join-command

 

 类似资料: