K8up
K8up: backup operator for Kubernetes and OpenShift
K8up (pronounced /keɪtæpp/, or simply “ketchup”) is an open source Kubernetes operator that backs up and restores application data on Kubernetes and OpenShift. VSHN started it in 2019 for the backups of its own managed services, and it has been a CNCF Sandbox project since 2021. K8up is licensed under Apache 2.0 and developed in the open on GitHub.
What K8up does
- Backs up persistent volumes: every PVC in a namespace, or only those with a specific label.
- Runs backups on a schedule, or once on demand.
- Makes application-aware backups: whatever a tool writes to stdout, such as a database dump, goes into the backup.
- Archives backups to long-term storage, such as AWS Glacier, at longer intervals.
- Checks the integrity of the backup repository and prunes old backups.
- Restores backups, with the help of the k8up command-line tool.
- Exposes Prometheus metrics, so a failed backup raises an alert instead of going unnoticed.
How it works
K8up builds on restic, so backups are encrypted and can go to any S3-compatible storage. You describe in Kubernetes custom resources what to back up, where and when, for example with a Schedule in the namespace you want to protect. The operator runs the jobs and reports their status.
How VSHN uses K8up
K8up runs the backups in the managed services VSHN operates. On APPUiO and in the Kubernetes and OpenShift clusters we run for customers, persistent data and application dumps are usually backed up with K8up, together with a documented and tested restore.
Get started
K8up is installed with its Helm chart. The documentation on k8up.io has a tutorial, how-to guides for installation, backups, schedules and restores, and the full reference.
Contribute
K8up is a community project. Issues, pull requests and new maintainers are welcome on GitHub. Want K8up to run the backups of your platform as part of a managed service? Book a consultation.