From 3f51421126cc36ec3e4d8213d4ac11ed60d9504c Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 18 Jan 2024 06:09:31 -0600 Subject: [PATCH] Add volsync & rook-ceph. --- kubernetes/apps/default/jellyfin/app/helmrelease.yaml | 11 +++-------- .../apps/default/jellyfin/app/kustomization.yaml | 1 + kubernetes/apps/default/jellyfin/ks.yaml | 6 +++++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/kubernetes/apps/default/jellyfin/app/helmrelease.yaml b/kubernetes/apps/default/jellyfin/app/helmrelease.yaml index 6715e0e9..e44079bf 100644 --- a/kubernetes/apps/default/jellyfin/app/helmrelease.yaml +++ b/kubernetes/apps/default/jellyfin/app/helmrelease.yaml @@ -75,14 +75,6 @@ spec: fsGroup: 568 fsGroupChangePolicy: OnRootMismatch supplementalGroups: [44, 105, 10000] - statefulset: - volumeClaimTemplates: - - name: config - accessMode: ReadWriteOnce - size: 1Gi - storageClass: local-hostpath - globalMounts: - - path: /config service: main: ports: @@ -106,6 +98,9 @@ spec: - hosts: - *host persistence: + config: + existingClaim: jellyfin + enabled: true transcode: type: emptyDir globalMounts: diff --git a/kubernetes/apps/default/jellyfin/app/kustomization.yaml b/kubernetes/apps/default/jellyfin/app/kustomization.yaml index 5b48b4e2..2eb7698f 100644 --- a/kubernetes/apps/default/jellyfin/app/kustomization.yaml +++ b/kubernetes/apps/default/jellyfin/app/kustomization.yaml @@ -5,3 +5,4 @@ kind: Kustomization namespace: default resources: - ./helmrelease.yaml + - ../../../../templates/volsync diff --git a/kubernetes/apps/default/jellyfin/ks.yaml b/kubernetes/apps/default/jellyfin/ks.yaml index b61ba41b..f0daf558 100644 --- a/kubernetes/apps/default/jellyfin/ks.yaml +++ b/kubernetes/apps/default/jellyfin/ks.yaml @@ -3,7 +3,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: jellyfin + name: &app jellyfin namespace: flux-system spec: dependsOn: @@ -17,3 +17,7 @@ spec: interval: 30m retryInterval: 1m timeout: 5m + postBuild: + substitute: + APP: *app + VOLSYNC_CAPACITY: 10Gi