mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-28 02:18:24 +00:00
fix(volsync/template): use ReadOnlyMany snapshotted PVCs
allows CephFS to use shallow clone rather than full data clone
This commit is contained in:
@@ -43,6 +43,16 @@ spec:
|
||||
${APP_UID_IMMICH}
|
||||
RFSG: !!str |
|
||||
${APP_UID_IMMICH}
|
||||
patches:
|
||||
- patch: | # too big for this luxury
|
||||
$patch: delete
|
||||
apiVersion: volsync.backube/v1alpha1
|
||||
kind: ReplicationSource
|
||||
metadata:
|
||||
name: immich-data-rgw-restic
|
||||
target:
|
||||
kind: ReplicationSource
|
||||
name: immich-data-rgw-restic
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
||||
@@ -13,6 +13,7 @@ spec:
|
||||
repository: "${PVC}-r2-restic"
|
||||
volumeSnapshotClassName: "${SNAP:=block}"
|
||||
storageClassName: "${SC:=block}"
|
||||
accessModes: ["${SNAP_ACCESSMODE:=ReadOnlyMany}"] # CephFS shallow snapshot, and allow rsrc pod to schedule anywhere
|
||||
cacheStorageClassName: "${CACHE:=block}"
|
||||
cacheAccessModes: ["ReadWriteOnce"]
|
||||
cacheCapacity: "${CACHESIZE:=2Gi}"
|
||||
@@ -34,4 +35,4 @@ spec:
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 6Gi
|
||||
memory: 6Gi
|
||||
|
||||
@@ -13,6 +13,7 @@ spec:
|
||||
repository: "vs-${PVC}-rgw-restic"
|
||||
volumeSnapshotClassName: "${SNAP:=block}"
|
||||
storageClassName: "${SC:=block}"
|
||||
accessModes: ["${SNAP_ACCESSMODE:=ReadOnlyMany}"] # CephFS shallow snapshot, and allow rsrc pod to schedule anywhere
|
||||
cacheStorageClassName: "${CACHE:=block}"
|
||||
cacheAccessModes: ["ReadWriteOnce"]
|
||||
cacheCapacity: "${CACHESIZE:=2Gi}"
|
||||
@@ -30,8 +31,7 @@ spec:
|
||||
s3.home.arpa/store: "rgw-${CLUSTER_NAME}"
|
||||
moverResources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 6Gi
|
||||
cpu: 150m
|
||||
memory: 6Gi
|
||||
|
||||
Reference in New Issue
Block a user