Recovery¶
Who recovers what¶
| Lost | Recovered by | From |
|---|---|---|
| Component and application definitions | Argo CD | Git |
| Files in volumes | Velero | Spaces |
| PostgreSQL | StackGres | Spaces |
Argo CD brings an application back with empty volumes. Velero and StackGres bring back the data.
Rebuild a cluster¶
make cluster ENV=<env>
Velero¶
live/local/kubernetes/velero/velero/schedule.yaml
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: local-daily
namespace: velero
spec:
schedule: "0 6 * * *" # (1)!
template:
ttl: 168h0m0s # (2)!
includedNamespaces: ["*"]
excludedNamespaces: [velero, kube-system, kube-public, kube-node-lease]
includeClusterResources: true
defaultVolumesToFsBackup: false # (3)!
- Every day at 06:00 UTC.
- Backups expire after seven days.
- Only volumes named in the Pod annotation
backup.velero.io/backup-volumesare copied.
| Setting | Value |
|---|---|
| Bucket | blackstorm-backups |
| Prefix | <cluster>/velero |
| Uploader | kopia |
Check the backups¶
kubectl --context local -n velero get schedules
kubectl --context local -n velero get backups
kubectl --context local -n velero get podvolumebackups
Or open Velero UI and StackGres.
Restores are manual
A restore is started by a person, from Velero UI or StackGres. Restores are not tested on a schedule.

