velero configure-hostpath
Configure snapshots to use a host path as storage destination.
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
| Flag | Type | Description |
-h, --help | Help for the command. | |
-n, --namespace | string | The namespace of the Admin Console (required) |
--hostpath | string | A local host path on the node |
--kotsadm-namespace | string | 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 | string | Set 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-password | string | Password to use to authenticate with the application registry. Used for air gap installations. |
--registry-username | string | Username to use to authenticate with the application registry. Used for air gap installations. |
--force-reset | bool | Bypass the reset prompt and force resetting the nfs path. (default false) |
--output | string | Output 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