Kubernetes:53.kubeadm概述

环境

[09:52:45 root@ceshi-01 ~ $]cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

[09:50:06 root@ceshi-01 ~ $]kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:20:51Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

语法

[08:45:29 root@ceshi-01 ~ $]kubeadm --help
    ┌──────────────────────────────────────────────────────────┐
    │ KUBEADM                                                  │
    │ Easily bootstrap a secure Kubernetes cluster             |
    │ 轻松安全的引导 Kubernetes cluster                        |
    │                                                          │
    │ Please give us feedback at:                              │
    │ 请给我们反馈                                             │
    │ https://github.com/kubernetes/kubeadm/issues             │
    └──────────────────────────────────────────────────────────┘

Example usage:

    Create a two-machine cluster with one control-plane node
    (which controls the cluster), and one worker node
    (where your workloads, like Pods and Deployments run).
    创建一个包括一个控制节点和一个 Worker 节点的双机集群

    ┌──────────────────────────────────────────────────────────┐
    │ On the first machine:                                    |
    │ 在第一台机器上:                                         |
    ├──────────────────────────────────────────────────────────┤
    │ control-plane# kubeadm init                              │
    └──────────────────────────────────────────────────────────┘

    ┌──────────────────────────────────────────────────────────┐
    │ On the second machine:                                   |
    │ 在第二胎机器上:                                         |
    ├──────────────────────────────────────────────────────────┤
    │ worker# kubeadm join       │
    └──────────────────────────────────────────────────────────┘

    You can then repeat the second step on as many other machines as you like.
    然后你可以在根据需要在任何其他机器上重复第二个来让更多的 Worker 节点加入集群

用法:
  kubeadm [command]

命令:
  alpha       Kubeadm experimental sub-commands
              实验子命令
  completion  Output shell completion code for the specified shell (bash or zsh)
              输出指定的 shell 完成码)(bash or zsh)
  config      Manage configuration for a kubeadm cluster persisted in a ConfigMap in the cluster
              管理几区中在 ConfigMap 中持久保存的 kubeadm 集群配置
  help        Help about any command
              显示此信息
  init        Run this command in order to set up the Kubernetes control plane
              运行此命令设置 Kubernetes 控制平面
  join        Run this on any machine you wish to join an existing cluster
              在任何计算机上运行此命令以加入集群
  reset       Run this to revert any changes made to this host by 'kubeadm init' or 'kubeadm join'
              运行此命令以恢复通过 'kubeadm init' or 'kubeadm join' 对主机所做的任何修改
  token       Manage bootstrap tokens
              管理 token 令牌
  upgrade     Upgrade your cluster smoothly to a newer version with this command
              使用此命令将集群平滑升级到新版本
  version     Print the version of kubeadm
              打印 kubeadm 的版本信息

Flags:
  -h, --help                     help for kubeadm
                                 帮助信息
      --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)
                                 定义日志文件可以增长到的最大大小,单位是 MB,如果值为0,则不受限制(默认1800)
      --rootfs string            [EXPERIMENTAL] The path to the 'real' host root filesystem.
                                 【实验】真正的主机文件系统的路径
      --skip-headers             If true, avoid header prefixes in the log messages
                                 如果为true,请避免在日志消息中使用标头前缀
      --skip-log-headers         If true, avoid headers when opening log files
                                 如果为true,请在打开日志文件时避免使用标头
  -v, --v Level                  number for the log level verbosity
                                 定义日志级别

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

你可能感兴趣的:(Kubernetes:53.kubeadm概述)