Skip to main content

Automated Backups

This document provides an outline for how to setup automated backups for NetFoundry On-Prem. The automated backups feature is built around Velero, which is an industry standard and open source tool for Kubernetes backups.

Minimum requirements

  • A running Kubernetes cluster
  • At least one Linux worker node
  • Sufficient disk space to handle backups
  • Access to an AWS S3 bucket, with an AWS credential set with read and write permissions to the S3 bucket

Prerequisites

  • awscli installed
  • velero_cli installed

Backup

Update the ./velero/s3-credentials-velero file with the IAM credentials, or load the credentials into the environment.

Run the velero/velero_backup.sh script to enable scheduled backups and follow the prompts for additional information.

The velero_backup script will step through the following:

  • Verify if velero cli is installed, installs if not installed
  • Checks if AWS credentials are set
  • Prompts for AWS S3 bucket name
  • Installs the velero plugin to the velero namespace in the cluster if it is not already installed
  • Creates a velero backup schedule to backup the resources from ziti and cert-manager namespace