What do you recommend for backups?
A Kubernetes backup strategy covers the data that exists only in the running cluster: database rows, uploaded files and Secrets that are not in Git. Syself Autopilot replaces failed nodes and brings the cluster back to the state you declared. The data your applications write is yours to back up.
- Manifests and the Cluster object: keep them in Git. You recover them by applying them again, so they need no other backup.
- Databases: run them under an operator such as CloudNativePG. It archives the write-ahead log to S3-compatible object storage and supports point-in-time recovery.
- Files: have the application write to object storage directly.
- Volumes with no backup of their own: Velero copies the files to object storage. It also captures Secrets that are not in Git. Set it up with Back up cluster state with Velero.
Store every backup in object storage outside the cluster, and run a restore drill before you need one. A volume snapshot is not a backup, because it stays on the same storage as the volume. See Volume snapshots and their limits.
Start with Backup layers and what needs protecting. To see which state Syself Autopilot rebuilds for you and which comes back only from your backup, read Backup and Disaster Recovery.
Related questions
