From 2305c5638c71229cc51d32fe25d8c85a9f6d84b1 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 25 Jul 2024 18:41:40 -0500 Subject: [PATCH] persistence --- .../apps/default/jellyseerr/app/helmrelease.yaml | 12 ++++-------- .../apps/default/jellyseerr/app/kustomization.yaml | 1 + kubernetes/apps/default/jellyseerr/ks.yaml | 3 +-- kubernetes/apps/default/radarr/ks.yaml | 1 + 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/kubernetes/apps/default/jellyseerr/app/helmrelease.yaml b/kubernetes/apps/default/jellyseerr/app/helmrelease.yaml index 7faf05fe..fe5b39f9 100644 --- a/kubernetes/apps/default/jellyseerr/app/helmrelease.yaml +++ b/kubernetes/apps/default/jellyseerr/app/helmrelease.yaml @@ -55,14 +55,6 @@ spec: drop: - ALL readOnlyRootFilesystem: true - statefulset: - podManagementPolicy: Parallel - volumeClaimTemplates: - - accessMode: ReadWriteOnce - globalMounts: - - path: /usr/lib/jellyseerr/config - name: config - size: 1Mi type: statefulset defaultPodOptions: securityContext: @@ -91,3 +83,7 @@ spec: ports: http: port: 5055 + persistence: + config: + enabled: true + existingClaim: radarr diff --git a/kubernetes/apps/default/jellyseerr/app/kustomization.yaml b/kubernetes/apps/default/jellyseerr/app/kustomization.yaml index 107d3639..fdb7b518 100644 --- a/kubernetes/apps/default/jellyseerr/app/kustomization.yaml +++ b/kubernetes/apps/default/jellyseerr/app/kustomization.yaml @@ -5,3 +5,4 @@ kind: Kustomization resources: - ./externalsecret.yaml - ./helmrelease.yaml + - ../../../../templates/volsync diff --git a/kubernetes/apps/default/jellyseerr/ks.yaml b/kubernetes/apps/default/jellyseerr/ks.yaml index b2882a54..e3fe72e2 100644 --- a/kubernetes/apps/default/jellyseerr/ks.yaml +++ b/kubernetes/apps/default/jellyseerr/ks.yaml @@ -21,9 +21,8 @@ spec: - name: openebs - name: crunchy-postgres-operator - name: external-secrets-stores + - name: volsync postBuild: substitute: APP: *app VOLSYNC_CAPACITY: 1Gi - APP_GID: "1000" - APP_UID: "1000" diff --git a/kubernetes/apps/default/radarr/ks.yaml b/kubernetes/apps/default/radarr/ks.yaml index 821241ac..29f4052c 100644 --- a/kubernetes/apps/default/radarr/ks.yaml +++ b/kubernetes/apps/default/radarr/ks.yaml @@ -14,6 +14,7 @@ spec: - name: crunchy-postgres-operator - name: external-secrets-stores - name: openebs + - name: volsync path: ./kubernetes/apps/default/radarr/app prune: true sourceRef: