Velero
Velero is a convenient backup tool for Kubernetes clusters that compresses and backs up Kubernetes objects to object storage. It also takes snapshots of your cluster’s Persistent Volumes using your cloud provider’s block storage snapshot features, and can then restore your cluster’s objects and Persistent Volumes to a previous state.Velero Docs - Overview
Installing the Velero CLI
MacOS:Prerequisites
Before setting up the velero components, you will need to prepare your AWS/GCP object storage, secrets and a dedicated user with access to resources required to perform a backup. The instructions below will guide you.AWS EKS: Installing Velero
AWS Setup Script Create s3 bucket:- Create IAM user and attach a IAM policy with necessary permissions:
- Create an access key for the user and note the AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID.
- Create a Velero-specific credentials file (credentials-velero)
- Installing velero
GCP GKE: Installing Velero
GCP Setup Script- Create GCS bucket
- Create Google Service Account (GSA)
- Create Custom Role with Permissions for the Velero
- Install velero