Skip to content

Latest commit

 

History

History
124 lines (79 loc) · 5.29 KB

snapshots-configuring-nfs.md

File metadata and controls

124 lines (79 loc) · 5.29 KB

import InstallVelero from "../partials/snapshots/_installVelero.mdx" import RegistryCredNote from "../partials/snapshots/_registryCredentialsNote.mdx" import ResticDaemonSet from "../partials/snapshots/_resticDaemonSet.mdx" import UpdateDefaultStorage from "../partials/snapshots/_updateDefaultStorage.mdx" import CheckVersion from "../partials/snapshots/_checkVersion.mdx"

Configuring an NFS Storage Destination

This topic describes how to install Velero and configure a Network File System (NFS) as your storage destination for backups.

:::note :::

Requirements

Configuring an NFS server as a snapshots storage destination has the following requirements:

  • The NFS server must be configured to allow access from all of the nodes in the cluster.
  • The NFS directory must be writable by the user:group 1001:1001.
  • Ensure that you configure the user:group 1001:1001 permissions for the directory on the NFS server.
  • All of the nodes in the cluster must have the necessary NFS client packages installed to be able to communicate with the NFS server. For example, the nfs-common package is a common package used on Ubuntu.
  • Any firewalls must be properly configured to allow traffic between the NFS server and clients (cluster nodes).

Prerequisites

Complete the following items before you perform this task:

Install Velero and Configure NFS Storage in Online Environments

To install Velero and configure NFS storage in an online environment:

  1. Run the following command to configure the NFS storage destination:

kubectl kots velero configure-nfs --namespace NAME --nfs-path PATH --nfs-server HOST

Replace: - NAME with the namespace where the Replicated KOTS Admin Console is installed and running - PATH with the path that is exported by the NFS server - HOST with the hostname or IP address of the NFS server

For more information about required storage destination flags, see velero in Reference.

Install Velero and Configure NFS Storage in Air Gapped Environments

To install Velero and configure NFS storage in air gapped environments:

  1. Run the following command to configure the NFS storage destination:

    kubectl kots velero configure-nfs \
      --namespace NAME \
      --nfs-server HOST \
      --nfs-path PATH \
      --kotsadm-registry REGISTRY_HOSTNAME[/REGISTRY_NAMESPACE] \
      --registry-username REGISTRY_USERNAME \
      --registry-password REGISTRY_PASSWORD
    

    Replace:

    • NAME with the namespace where the Admin Console is installed and running
    • HOST with the hostname or IP address of the NFS server
    • PATH with the path that is exported by the NFS server
    • REGISTRY_HOSTNAME with the registry endpoint where the images are hosted
    • REGISTRY_NAMESPACE with the registry namespace where the images are hosted (Optional)
    • REGISTRY_USERNAME with the username to use to authenticate with the registry
    • REGISTRY_PASSWORD with the password to use to authenticate with the registry

    For more information about required storage destination flags, see velero in Reference.

Configure NFS Storage in the Admin Console

Alternatively, when the Admin Console and application are already installed, you can start in the Admin Console to install Velero and configure an NFS storage destination.

To install Velero and configure NFS storage for existing clusters:

  1. From the Admin Console, click Snapshots > Settings and Schedule.

  2. Click Add a new storage destination.

    The Add a new destination dialog opens and shows instructions for setting up Velero with different providers.

  3. Click NFS.

    Snapshot Provider NFS

  4. In the Configure NFS dialog, enter the NFS server hostname or IP Address, and the path that is exported by the NFS server. Click Get instructions.

    Snapshot Provider NFS Fields

    A dialog opens with instructions on how to set up Velero with the specified NFS configuration.

  5. Follow the steps in the dialog to install Velero and configure the storage destination.

    Snapshot Provider File System Instructions

  6. Return to the Admin Console and either click Check for Velero or refresh the page to verify that the Velero installation is detected.

Next Steps

Additional Resources