Cluster component
K8up
Backs up each project's volumes to S3-compatible storage; database backups don't need it.
- Memory when idle
- about 10 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 and ARM servers
- Installed by default
- Optional
Introduction
K8up backs up the contents of PersistentVolumeClaims to S3-compatible storage with restic. Install it when services need backups of their own volumes. It backs up one service’s files, not the whole cluster. Database backups don’t need it.
K8up backs up only PVCs that carry the annotation k8up.io/backup=true, so installing it backs up nothing by itself. Its controller watches K8up objects and reads PVCs, PersistentVolumes and Pods in every namespace. It creates backup Jobs, ServiceAccounts and RoleBindings in the namespace of the volume. Each backup Job mounts the volume in its own namespace only.
Use it
In Zeabur OSS, open a service’s Settings → Storage and click Back up this volume. Have an S3 bucket and keys ready, or an S3 destination that an administrator registered. Zeabur OSS creates the K8up Schedule and the Secret that holds the restic password. See Set up volume backups.
Copy the RESTIC_PASSWORD from the backup Secret to a safe place. Without it, you can’t read the backups in S3.
Remove it
Removing K8up stops all scheduled backups. When the chart goes, a cleanup Job deletes the pod-executor Role and RoleBinding that K8up added in each namespace. The CRDs stay, and so do the Schedule objects, the backup Secrets and the data in your S3 buckets. Schedules do nothing until K8up is back. To stop one for good, delete it with kubectl -n <namespace> delete schedule.k8up.io <name>. See Remove components.
Troubleshooting
A backup never starts or fails
Check that the PVC carries k8up.io/backup=true: kubectl -n <namespace> get pvc <name> -o jsonpath='{.metadata.annotations}'. Then list the runs with kubectl -n <namespace> get backups.k8up.io, and read the operator’s logs with kubectl -n k8up-system logs deploy/k8up.
Technical details
This release
- Provides
- volume-backup
- Licence
- Apache-2.0
- Homepage
- k8up.io
- Source file
- components/k8up/component.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| k3s | linux/amd64 | v1.37.2 | 10 MiB | |
| k3s | linux/arm64 | v1.37.2 | 12 MiB | |
| kind | linux/amd64 | v1.37.0 | 11 MiB | |
| kind | linux/arm64 | v1.37.0 | 12 MiB | |
| kubesolo | linux/amd64 | v1.36.6 | 13 MiB | |
| kubesolo | linux/arm64 | v1.36.6 | 12 MiB | |
| rke2 | linux/amd64 | v1.37.2 | 11 MiB | |
| rke2 | linux/arm64 | v1.37.2 | 11 MiB |
Security
Watches K8up objects cluster-wide; backup Jobs mount PVCs in their own namespace.
What it installs
- k8up 4.10.1