commit 4c8b294e3b868fd719e8d8bf8867469dedc10a2f parent 3c2fc9a103171fa80b5381e114cf1ec1a7aee234 Author: MTRNord <mtrnord1@gmail.com> Date: Sat, 19 Oct 2024 02:16:38 +0200 Meow Diffstat:
| M | apps/base/k8up/release.yaml | | | 45 | --------------------------------------------- |
| M | infrastructure/configs/postgres-clusters.yaml | | | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/apps/base/k8up/release.yaml b/apps/base/k8up/release.yaml @@ -81,48 +81,3 @@ spec: - name: storagebox-vol persistentVolumeClaim: claimName: storagebox-pvc ---- -apiVersion: k8up.io/v1 -kind: Schedule -metadata: - name: backup-storagebox-schedule-pg - namespace: postgres-cluster -spec: - resourceRequirementsTemplate: - requests: - memory: "64Mi" - cpu: "250m" - limits: {} - backend: - repoPasswordSecretRef: - name: backup-repo - key: password - local: - mountPath: /mnt/storagebox/backups/k8s_2024/postgres-cluster - volumeMounts: - - name: storagebox-vol - mountPath: /mnt/storagebox - backup: - schedule: '@daily-random' - failedJobsHistoryLimit: 2 - successfulJobsHistoryLimit: 2 - resources: - requests: - memory: "64Mi" - cpu: "250m" - limits: {} - volumes: - - name: storagebox-vol - persistentVolumeClaim: - claimName: storagebox-pvc - prune: - schedule: '@daily-random' - retention: - keepDaily: 7 - keepWeekly: 4 - keepMonthly: 3 - keepYearly: 1 - volumes: - - name: storagebox-vol - persistentVolumeClaim: - claimName: storagebox-pvc diff --git a/infrastructure/configs/postgres-clusters.yaml b/infrastructure/configs/postgres-clusters.yaml @@ -124,3 +124,48 @@ spec: failsafe_mode: true synchronous_mode: false #synchronous_mode: true +--- +apiVersion: k8up.io/v1 +kind: Schedule +metadata: + name: backup-storagebox-schedule-pg + namespace: postgres-cluster +spec: + resourceRequirementsTemplate: + requests: + memory: "64Mi" + cpu: "250m" + limits: {} + backend: + repoPasswordSecretRef: + name: backup-repo + key: password + local: + mountPath: /mnt/storagebox/backups/k8s_2024/postgres-cluster + volumeMounts: + - name: storagebox-vol + mountPath: /mnt/storagebox + backup: + schedule: '@daily-random' + failedJobsHistoryLimit: 2 + successfulJobsHistoryLimit: 2 + resources: + requests: + memory: "64Mi" + cpu: "250m" + limits: {} + volumes: + - name: storagebox-vol + persistentVolumeClaim: + claimName: storagebox-pvc + prune: + schedule: '@daily-random' + retention: + keepDaily: 7 + keepWeekly: 4 + keepMonthly: 3 + keepYearly: 1 + volumes: + - name: storagebox-vol + persistentVolumeClaim: + claimName: storagebox-pvc