forked from k-space/kube
Set up Longhorn backups to ZFS box
This commit is contained in:
parent
c90a5bbf5e
commit
5c8a166218
46
longhorn-system/backup.yaml
Normal file
46
longhorn-system/backup.yaml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
apiVersion: codemowers.cloud/v1beta1
|
||||||
|
kind: MinioBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: backup
|
||||||
|
spec:
|
||||||
|
capacity: 1Ti
|
||||||
|
class: external
|
||||||
|
---
|
||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: Setting
|
||||||
|
metadata:
|
||||||
|
name: backup-target
|
||||||
|
namespace: longhorn-system
|
||||||
|
value: 's3://longhorn-system-a4b235c5-7919-4cb0-9949-259e60c579f1@us-east1/'
|
||||||
|
---
|
||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: Setting
|
||||||
|
metadata:
|
||||||
|
name: backup-target-credential-secret
|
||||||
|
namespace: longhorn-system
|
||||||
|
value: 'miniobucket-backup-owner-secrets'
|
||||||
|
---
|
||||||
|
apiVersion: longhorn.io/v1beta1
|
||||||
|
kind: RecurringJob
|
||||||
|
metadata:
|
||||||
|
name: backup
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
cron: "0 2 * * *"
|
||||||
|
task: backup
|
||||||
|
groups:
|
||||||
|
- default
|
||||||
|
retain: 1
|
||||||
|
concurrency: 4
|
||||||
|
---
|
||||||
|
apiVersion: longhorn.io/v1beta1
|
||||||
|
kind: RecurringJob
|
||||||
|
metadata:
|
||||||
|
name: trim
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
cron: "0 * * * *"
|
||||||
|
task: trim
|
||||||
|
groups:
|
||||||
|
- default
|
Loading…
Reference in New Issue
Block a user