rework storage to reduce backup load
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
07a1cd6648
commit
0be2949c50
5 changed files with 57 additions and 1 deletions
|
@ -4,6 +4,7 @@ minio:
|
||||||
drivesPerNode: 2
|
drivesPerNode: 2
|
||||||
persistence:
|
persistence:
|
||||||
size: 15Gi
|
size: 15Gi
|
||||||
|
storageClass: longhorn-local
|
||||||
loki:
|
loki:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
persistence:
|
persistence:
|
||||||
|
@ -12,3 +13,9 @@ monitoring:
|
||||||
selfMonitoring:
|
selfMonitoring:
|
||||||
grafanaAgent:
|
grafanaAgent:
|
||||||
installOperator: false
|
installOperator: false
|
||||||
|
write:
|
||||||
|
persistence:
|
||||||
|
storageClass: longhorn-local
|
||||||
|
backend:
|
||||||
|
persistence:
|
||||||
|
storageClass: longhorn-local
|
||||||
|
|
25
longhorn/recurringjobs.yaml
Normal file
25
longhorn/recurringjobs.yaml
Normal 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
|
15
longhorn/storageclass.yaml
Normal file
15
longhorn/storageclass.yaml
Normal 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"
|
|
@ -1,3 +1,11 @@
|
||||||
|
persistence:
|
||||||
|
recurringJobSelector:
|
||||||
|
enable: true
|
||||||
|
jobList:
|
||||||
|
- name: snapshot
|
||||||
|
isGroup: false
|
||||||
|
- name: backup
|
||||||
|
isGroup: false
|
||||||
defaultSettings:
|
defaultSettings:
|
||||||
defaultDataPath: /storage1
|
defaultDataPath: /storage1
|
||||||
backupTarget: "s3://yolokube-backup@weur/"
|
backupTarget: "s3://yolokube-backup@weur/"
|
||||||
|
|
|
@ -117,6 +117,7 @@ prometheus:
|
||||||
storageSpec:
|
storageSpec:
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
spec:
|
spec:
|
||||||
|
storageClassName: longhorn-local
|
||||||
accessModes: ["ReadWriteOnce"]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|
Loading…
Reference in a new issue