Scheduling Automatic Backups For Your Cluster
Schedule automatic backups for Galileo clusters with this guide, ensuring data security, disaster recovery, and operational resilience for deployments.
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:
Linux:
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
Create s3 bucket:
- Create IAM user and attach a IAM policy with necessary permissions:
IAM policy:
- 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)
All the steps above are included in the AWS velero account setup script
- Installing velero
The velero install command will perform the setup steps to get the cluster ready for backups.
GCP GKE: Installing Velero
- Create GCS bucket
- Create Google Service Account (GSA)
- Create Custom Role with Permissions for the Velero
All the steps above are included in the GCP velero account setup script
- Install velero
Backups
Setup daily backups:
Restore from backup
NOTE: Existing cluster resources will not be overwritten by the restoration process. To restore a PV delete it from the cluster before running the restore command
NOTE: All DNS entries have to be updated after restore as velero does not persist the ingress IP/LB names.
Was this page helpful?