rework storage to reduce backup load
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2024-01-26 13:39:13 +01:00
parent 07a1cd6648
commit 0be2949c50
Signed by: aaron
GPG key ID: 643004654D40D577
5 changed files with 57 additions and 1 deletions

View file

@ -0,0 +1,25 @@
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: snapshot
namespace: longhorn-system
spec:
cron: "40 * * * *"
task: "snapshot"
groups:
- default
retain: 12
concurrency: 2
---
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
name: backup
namespace: longhorn-system
spec:
cron: "30 4 * * *"
task: "backup"
groups:
- default
retain: 7
concurrency: 2

View file

@ -0,0 +1,15 @@
# this is the storageclass manifest for the logs and metrics volumes
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn-local
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: "Delete"
volumeBindingMode: Immediate
parameters:
numberOfReplicas: "2"
staleReplicaTimeout: "30"
fromBackup: ""
fsType: "ext4"
dataLocality: "disabled"

View file

@ -1,3 +1,11 @@
persistence:
recurringJobSelector:
enable: true
jobList:
- name: snapshot
isGroup: false
- name: backup
isGroup: false
defaultSettings:
defaultDataPath: /storage1
backupTarget: "s3://yolokube-backup@weur/"