Skip to content

mkectl init

mkectl init#

Prints an example MKE4 config

Synopsis#

Prints an example MKE4 config to stdout. The resulting k0sctl cluster config for each input method can be output by using the --print-k0sctl-config flag. Passing an existing MKE4 config without the k0sctl config flag will just print the MKE4 config.

Example usage: mkectl init # Print an example MKE4 config mkectl init --file /path/to/mke4-config.yaml --print-k0sctl-config # Use an existing MKE4 config and print the resulting k0sctl cluster config

mkectl init [flags]

Options#

  -d, --data-dir string       Path to use for storing kubernetes provider(k0s) data. Defaults to /var/lib/k0s. Must end with /k0s (default "/var/lib/k0s")
  -h, --help                  help for init
      --print-k0sctl-config   prints the k0sctl config file that would be the result of the MKE config

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