Skip to main content

velero configure-hostpath

Configure snapshots to use a host path as storage destination.

Usage

kubectl kots velero configure-hostpath [flags]
  • Provide [flags] according to the table below
FlagTypeDescription
-h, --helphelp for configure-hostpath
-n, --namespacestringthe namespace of the admin console (required)
--hostpathstringa local host path on the node
--kotsadm-namespacestringset to override the namespace of kotsadm images. used for airgapped installations.
--kotsadm-registrystringset to override the registry of kotsadm images. used for airgapped installations.
--registry-passwordstringpassword to use to authenticate with the provided registry. used for airgapped installations.
--registry-usernamestringusername to use to authenticate with the provided registry. used for airgapped installations.
--force-resetboolbypass the reset prompt and force resetting the host path directory. (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 \
--kotsadm-namespace kots-sentry \
--registry-username ro-username \
--registry-password ro-password