fix(volsync): reschedule all rsrcs

This commit is contained in:
JJGadgets
2023-11-29 09:12:58 +08:00
parent 967886bdb7
commit 6f33d2f544
15 changed files with 14 additions and 93 deletions

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: "audiobookshelf-config"
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: "Snapshot"
pruneIntervalDays: 14

View File

@@ -35,7 +35,7 @@ spec:
path: ./kube/deploy/core/db/pg/clusters/template
dependsOn:
- name: 1-core-db-pg-app
- name: 1-core-storage-rook-ceph-cluster
- name: 1-core-storage-democratic-csi-local-hostpath
postBuild:
substitute:
PG_APP_NAME: &app "authentik"
@@ -43,7 +43,7 @@ spec:
PG_DB_NAME: *app
PG_DB_USER: *app
PG_REPLICAS: "3"
PG_SC: "block"
PG_SC: "local"
PG_CONFIG_VERSION: "15.2-11"
PG_CONFIG_SIZE: "20Gi"
# healthChecks:
@@ -63,4 +63,4 @@ metadata:
namespace: flux-system
spec:
path: ./kube/deploy/apps/authentik/redis
dependsOn: []
dependsOn: []

View File

@@ -1,26 +0,0 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: remote-cluster
namespace: ingress
spec:
chart:
spec:
chart: authentik-remote-cluster
version: 1.1.0
sourceRef:
name: authentik
kind: HelmRepository
namespace: flux-system
values:
fullnameOverride: "authentik-remote-cluster"
---
apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
name: authentik-remote-cluster-token
namespace: ingress
annotations:
kubernetes.io/service-account.name: "authentik-remote-cluster"

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: elk-config
namespace: default
labels:
app.kubernetes.io/name: &app elk
app.kubernetes.io/instance: *app
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: file

View File

@@ -1,36 +0,0 @@
---
apiVersion: v1
kind: Secret
metadata:
name: elk-restic
namespace: default
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_VOLSYNC_R2_REPO}/elk
RESTIC_PASSWORD: ${SECRET_VOLSYNC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_VOLSYNC_R2_ID}
AWS_SECRET_ACCESS_KEY: ${SECRET_VOLSYNC_R2_KEY}
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: elk-restic
namespace: default
spec:
sourcePVC: elk-config
trigger:
schedule: "0 6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 14
repository: elk-restic
cacheCapacity: 1Gi
volumeSnapshotClassName: file
storageClassName: file
moverSecurityContext:
runAsUser: &uid 911
runAsGroup: *uid
fsGroup: *uid
retain:
daily: 14
within: 7d

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: firefly-uploads
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: data-grocy-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: backup-kanidm-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: neko-xfce-home
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: data-nextcloud-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: data-paperless-ngx-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: data-satisfactory-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: config-soft-serve-0 # TODO: find PVC name
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: user1-ceph-rbd-syncthing-${USERS_1_ID}-0
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14

View File

@@ -19,7 +19,7 @@ metadata:
spec:
sourcePVC: thelounge-data
trigger:
schedule: "0 6 * * *"
schedule: "0 22 * * *" # 6am GMT+8
restic:
copyMethod: Snapshot
pruneIntervalDays: 14