fix(volsync/template): use ReadOnlyMany snapshotted PVCs

allows CephFS to use shallow clone rather than full data clone
This commit is contained in:
JJGadgets
2024-05-13 20:21:33 +08:00
parent 00a2fdf6e7
commit c151960443
3 changed files with 15 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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