Skip to content
Snippets Groups Projects
Commit 89d65823 authored by Arie Peterson's avatar Arie Peterson
Browse files

Add backup-specific tasks to new_app template

parent 427ee8d0
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,25 @@
* [ ] Admin-login should grant admin privileges
* [ ] Non-admin should not grant admin privileges
### Backup/restore
This applies if the app has any persistent storage that needs to be part of
backups.
* [ ] Add the label `stackspin.net/backupSet=myApp` to:
* [ ] the pvc(s) in `flux2/apps/myApp/pvc*.yaml`;
* [ ] any pod(s) that use those pvc(s); this would go in the chart's helm
values, with the value typically called `podLabels`, or if it doesn't have
that maybe `commonLabels`;
* [ ] the kubernetes objects controlling those pods, typically a deployment
(`deploymentLabels` or `commonLabels`) or statefulset (`statefulSetLabels`
or `commonLabels`).
* [ ] To the same pods, i.e., the ones that use the pvc's that need to be
backed up, add an annotation `backup.velero.io/backup-volumes: "volume-name"`,
where `volume-name` is the name of the volume internal to the pod kubernetes
object, as shown for example in `kubectl describe pod` output.
* [ ] Add app-specific backup/restore instructions if necessary.
### Etc
* [ ] Add app to `dump_secrets()` in `stackspin/cluster.py`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment