Consolidate to see if flux doesnt one shot

This commit is contained in:
j 2025-07-10 22:24:21 +10:00
parent 7e53160afe
commit a3cbbb9e4d
3 changed files with 20 additions and 48 deletions

View file

@ -1,46 +0,0 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: mariadb-backup-pv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
storageClassName: manual
hostPath:
path: /dpool/backups/mariadb
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mariadb-backup-pvc
namespace: home-server
spec:
accessModes:
- ReadWriteOnce
storageClassName: manual
resources:
requests:
storage: 10Gi
---
apiVersion: k8s.mariadb.com/v1alpha1
kind: Backup
metadata:
name: backup-local
namespace: home-server
spec:
mariaDbRef:
name: nextcloud-db
schedule:
cron: "0 1 * * *"
maxRetention: 168h
volumeMounts:
- mountPath: /backups
name: backup-volume
volumes:
- name: backup-volume
hostPath:
path: /dpool/backups/mariadb
type: DirectoryOrCreate

View file

@ -4,4 +4,3 @@ kind: Kustomization
resources: resources:
- mariadb.yaml - mariadb.yaml
- backups.yaml

View file

@ -57,4 +57,23 @@ spec:
values: values:
metrics: metrics:
enabled: true enabled: true
---
apiVersion: k8s.mariadb.com/v1alpha1
kind: Backup
metadata:
name: backup-local
namespace: home-server
spec:
mariaDbRef:
name: nextcloud-db
schedule:
cron: "0 1 * * *"
maxRetention: 168h
volumeMounts:
- mountPath: /backups
name: backup-volume
volumes:
- name: backup-volume
hostPath:
path: /dpool/backups/mariadb
type: DirectoryOrCreate