velero configure-nfs
Configures snapshots to use NFS 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 NFS 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-nfs [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) |
--nfs-server | string | The hostname or IP address of the NFS server (required) |
--nfs-path | string | The path that is exported by the NFS server (required) |
--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-nfs --nfs-server 10.128.0.32 --nfs-path /mnt/nfs_share --namespace kots-sentry
Using a registry for airgapped installations
kubectl kots velero configure-nfs \
--nfs-server 10.128.0.32 \
--nfs-path /mnt/nfs_share \
--namespace kots-sentry \
--kotsadm-registry private.registry.host/kots-sentry \
--registry-username ro-username \
--registry-password ro-password