Kubernetes:53.kubeadmの概要

4457 ワード

環境
[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.