Skip to main content

velero configure-nfs

Configures snapshots to use NFS as storage destination.

Usage

kubectl kots velero configure-nfs [flags]
  • Provide [flags] according to the table below
FlagTypeDescription
-h, --helpHelp for the command.
-n, --namespacestringThe namespace of the Admin Console (required)
--nfs-serverstringThe hostname or IP address of the NFS server (required)
--nfs-pathstringThe path that is exported by the NFS server (required)
--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-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