Zum Hauptinhalt springen
Version: Weekly Build

oms install k0s

Generated from OMS version v2.113.0.

Install k0s Kubernetes distribution

Synopsis​

Install k0s either from the package or by downloading it. This command uses k0sctl to deploy k0s clusters from a Codesphere install-config.

You must provide a Codesphere install-config file, which will:

  • Generate a k0s configuration from the install-config
  • Generate a k0sctl configuration for cluster deployment
  • Deploy k0s to all nodes defined in the install-config using k0sctl
oms install k0s [flags]

Examples​

# Path to Codesphere install-config file to generate k0s config from
$ oms install k0s --install-config <path>

# Version of k0s to install (e.g., v1.31.14+k0s.0)
$ oms install k0s --version <version>

# Version of k0sctl to use (e.g., v0.17.4)
$ oms install k0s --k0sctl-version <version>

# Package file (e.g. codesphere-v1.2.3-installer-lite.tar.gz) to load k0s from
$ oms install k0s --package <file>

# SSH private key path for remote installation
$ oms install k0s --ssh-key-path <path>

# Force new download and installation
$ oms install k0s --force

# Skip downloading k0s binary (expects it to be on remote nodes)
$ oms install k0s --no-download

Options​

-f, --force Force new download and installation
-h, --help help for k0s
--install-config string Path to Codesphere install-config file (required)
--k0sctl-version string Version of k0sctl to use (default "v0.33.1")
--no-download Skip downloading k0s binary
-p, --package string Package file (e.g. codesphere-v1.2.3-installer-lite.tar.gz) to load k0s from
--ssh-key-path string SSH private key path for remote installation
--vault string Path to prod.vault.yaml to save the kubeconfig into (optional)
--vault-priv-key string Path to the age private key to decrypt the vault (optional, for SOPS-encrypted vaults)
--vault-type string Vault storage type (sops or plain) (default "sops")
-v, --version string Version of k0s to install (default "v1.31.14+k0s.0")

Options inherited from parent commands​

--verbose Enable verbose output

SEE ALSO​

  • oms install - Install Codesphere and other components