From 2a327d40f600bc265241fa853bfb0f0eb1aa1e9c Mon Sep 17 00:00:00 2001 From: Laur IVAN Date: Thu, 26 Feb 2026 16:52:39 +0100 Subject: [PATCH] refactor: Default VolSync storage class and capacity parameters, removing explicit application overrides. --- kubernetes/apps/media/navidrome/app.ks.yaml | 2 -- kubernetes/apps/media/plex/app.ks.yaml | 2 -- kubernetes/components/volsync/replication-destination.yaml | 6 +++--- kubernetes/components/volsync/replication-source.yaml | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/kubernetes/apps/media/navidrome/app.ks.yaml b/kubernetes/apps/media/navidrome/app.ks.yaml index e40b5f8..ba70781 100644 --- a/kubernetes/apps/media/navidrome/app.ks.yaml +++ b/kubernetes/apps/media/navidrome/app.ks.yaml @@ -24,8 +24,6 @@ spec: VOLSYNC_CAPACITY: 1Gi VOLSYNC_PUID: "568" VOLSYNC_PGID: "568" - VOLSYNC_STORAGECLASS: ceph-block - VOLSYNC_CACHE_SNAPSHOTCLASS: ceph-block decryption: { provider: sops } dependsOn: diff --git a/kubernetes/apps/media/plex/app.ks.yaml b/kubernetes/apps/media/plex/app.ks.yaml index 7e9c9b2..8403ace 100644 --- a/kubernetes/apps/media/plex/app.ks.yaml +++ b/kubernetes/apps/media/plex/app.ks.yaml @@ -20,8 +20,6 @@ spec: substitute: APP: *app VOLSYNC_CAPACITY: 50Gi - VOLSYNC_STORAGECLASS: ceph-block - VOLSYNC_CACHE_SNAPSHOTCLASS: ceph-block prune: true sourceRef: kind: GitRepository diff --git a/kubernetes/components/volsync/replication-destination.yaml b/kubernetes/components/volsync/replication-destination.yaml index 33da2ae..15c79a3 100644 --- a/kubernetes/components/volsync/replication-destination.yaml +++ b/kubernetes/components/volsync/replication-destination.yaml @@ -12,12 +12,12 @@ spec: repository: "${APP}-volsync-secret" copyMethod: Snapshot volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:=openebs-snapshots}" - cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS}" + cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:=openebs-hostpath}" cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:=ReadWriteOnce}"] cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:=5Gi}" - storageClassName: "${VOLSYNC_STORAGECLASS}" + storageClassName: "${VOLSYNC_STORAGECLASS:=openebs-hostpath}" accessModes: ["${VOLSYNC_ACCESSMODES:=ReadWriteOnce}"] - capacity: "${VOLSYNC_CAPACITY}" + capacity: "${VOLSYNC_CAPACITY:=5Gi}" moverSecurityContext: runAsUser: ${VOLSYNC_PUID:=1000} runAsGroup: ${VOLSYNC_PGID:=1000} diff --git a/kubernetes/components/volsync/replication-source.yaml b/kubernetes/components/volsync/replication-source.yaml index da5dff4..6af5e9a 100644 --- a/kubernetes/components/volsync/replication-source.yaml +++ b/kubernetes/components/volsync/replication-source.yaml @@ -15,9 +15,9 @@ spec: repository: "${APP}-volsync-secret" volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:=openebs-snapshots}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:=5Gi}" - cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS}" + cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:=openebs-hostpath}" cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:=ReadWriteOnce}"] - storageClassName: "${VOLSYNC_STORAGECLASS}" + storageClassName: "${VOLSYNC_STORAGECLASS:=openebs-hostpath}" accessModes: ["${VOLSYNC_SNAP_ACCESSMODES:=ReadWriteOnce}"] moverSecurityContext: