# sealer apply

apply a Kubernetes cluster via specified Clusterfile

# Synopsis

apply command is used to apply a Kubernetes cluster via specified Clusterfile. If the Clusterfile is applied first time, Kubernetes cluster will be created. Otherwise, sealer will apply the diff change of current Clusterfile and the original one.

sealer apply [flags]

# Examples


  sealer apply -f Clusterfile

# Options

  -f, --Clusterfile string   Clusterfile path to apply a Kubernetes cluster
  -m, --applyMode string     load images to the specified registry in advance (default "apply")
  -e, --env strings          set custom environment variables
      --force                force to delete the specified cluster if set true
  -h, --help                 help for apply
      --ignore-cache         whether ignore cache when distribute sealer image, default is false.
      --masters string       set count or IPList to masters
      --nodes string         set count or IPList to nodes
  -p, --passwd string        set cloud provider or baremetal server password
      --pk string            set baremetal server private key (default "/root/.ssh/id_rsa")
      --pk-passwd string     set baremetal server private key password
      --port uint16          set the sshd service port number for the server (default port: 22) (default 22)
  -u, --user string          set baremetal server username (default "root")

# Options inherited from parent commands

      --color string               set the log color mode, the possible values can be [never always] (default "always")
      --config string              config file of sealer tool (default is $HOME/.sealer.json)
  -d, --debug                      turn on debug mode
      --hide-path                  hide the log path
      --hide-time                  hide the log time
      --log-to-file                write log message to disk
  -q, --quiet                      silence the usage when fail
      --remote-logger-url string   remote logger url, if not empty, will send log to this url
      --task-name string           task name which will embedded in the remote logger header, only valid when --remote-logger-url is set

# SEE ALSO

  • sealer cert - Update Kubernetes API server's cert
  • sealer delete - delete an existing cluster
  • sealer apply - apply a Kubernetes cluster via specified Clusterfile
  • sealer scale-up - scale-up new master or worker node to specified cluster
  • sealer run - start to run a cluster from a Sealer Image
  • sealer rollback - rollback a Kubernetes cluster via specified Clusterfile
  • sealer upgrade - upgrade the kubernetes version of an existing cluster from a Sealer Image