Skip to content

Instantly share code, notes, and snippets.

@ntolia
Last active March 6, 2020 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntolia/d594a574e475b5bc11e7ff359ab28e1f to your computer and use it in GitHub Desktop.
Save ntolia/d594a574e475b5bc11e7ff359ab28e1f to your computer and use it in GitHub Desktop.
apiVersion: config.kio.kasten.io/v1alpha1
kind: Policy
metadata:
name: backup-helm-apps
namespace: kasten-io
spec:
comment: Backup all apps deployed via Helm
frequency: "@hourly"
actions:
- action: backup
retention:
hourly: 24
daily: 7
weekly: 4
monthly: 12
yearly: 7
selector:
matchExpressions:
- key: heritage
operator: In
values:
- Helm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment