Skip to content

mkectl backup

mkectl backup#

Create a backup of the MKE 4 Kubernetes management cluster.

Synopsis#

Create a backup of the MKE 4 Kubernetes management cluster.

This command captures the state of the management plane, including cluster configuration, certificates, and other persistent control plane data. The backup can be used to recover the management cluster in the event of failure.

mkectl backup [flags]

Options#

      --disable-pre-backup-cluster-validation   Skip cluster validation prior to taking a backup
  -h, --help                                    help for backup
      --lease-adopt-stale                       if true, matching stale lease would be adopted instead of failing with error
      --lease-renew-interval duration           lease renew interval for cluster-wide/node operations, should be < leaseTTL (default 20s)
      --lease-ttl duration                      lease TTL for cluster-wide/node operations (default 1m0s)
      --name string                             Name of the snapshot to create (default "backup.tar")
      --progress-bars                           Enable progress bars during snapshot creation (default true)

Options inherited from parent commands#

  -f, --file string              path to the config file. Not needed for restore where config is loaded from the backup (default "mke4.yaml")
      --kubeconfig string        path to the kubeconfig file of the existing or restored cluster. DO NOT USE when creating a new cluster (default "/home/runner/.mke/mke.kubeconf")
  -l, --logLevel string          specify a log level (info, warn, debug, trace, error) (default "info")
      --no-color                 when provided, disables colored output
      --no-pretty-print          when provided, disables pretty print output formatting
      --version version[=true]   --version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version