Skip to main content

velero configure-hostpath

Configure snapshots to use a host path as storage destination.

note

The local-volume-provider (LVP) plugin supports only Restic. Velero 1.17 and later do not support LVP. By default, KOTS uses the S3-compatible filesystem MinIO path for HostPath storage when MinIO is enabled. KOTS uses LVP only when you disable MinIO or explicitly install the LVP plugin. For more information, see Upgrade Velero for snapshots.

Usage

kubectl kots velero configure-hostpath [flags]
  • Provide [flags] according to the table below
FlagTypeDescription
-h, --helpHelp for the command.
-n, --namespacestringThe namespace of the Admin Console (required)
--hostpathstringA local host path on the node
--kotsadm-namespacestring

Set to override the registry namespace of KOTS Admin Console images. Used for air gap installations. For more information, see Air Gap Installation in Existing Clusters with KOTS.

Note: Replicated recommends that you use --kotsadm-registry instead of --kotsadm-namespace to override both the registry hostname and, optionally, the registry namespace with a single flag.

--kotsadm-registrystringSet to override the registry hostname and namespace of KOTS Admin Console images. Used for air gap installations. For more information, see Air Gap Installation in Existing Clusters with KOTS.
--registry-passwordstringPassword to use to authenticate with the application registry. Used for air gap installations.
--registry-usernamestringUsername to use to authenticate with the application registry. Used for air gap installations.
--force-resetboolBypass the reset prompt and force resetting the nfs path. (default false)
--outputstringOutput format. Supported values: json

Examples

Basic

kubectl kots velero configure-hostpath --hostpath /mnt/kots-sentry-snapshots --namespace kots-sentry

Using a registry for airgapped installations

kubectl kots velero configure-hostpath \
--hostpath /mnt/kots-sentry-snapshots \
--namespace kots-sentry \
--kotsadm-registry private.registry.host/kots-sentry \
--registry-username ro-username \
--registry-password ro-password