From 2c7fee5c2c35fc14300a663157ec75e2519d3834 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Tue, 24 Feb 2026 18:48:54 +0100 Subject: [PATCH 01/11] fix(a01): corrected jellyfin patch --- .../a01/overlays/test/patches/jellyfin.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/environments/customers/a01/overlays/test/patches/jellyfin.yaml b/environments/customers/a01/overlays/test/patches/jellyfin.yaml index 2f671eb..eb6013c 100644 --- a/environments/customers/a01/overlays/test/patches/jellyfin.yaml +++ b/environments/customers/a01/overlays/test/patches/jellyfin.yaml @@ -1,11 +1,11 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: patch + name: patch spec: - source: - helm: - valuesObject: - persistence: - config: - size: 10Gi + source: + helm: + valuesObject: + persistence: + config: + size: 10Gi From 8f0e48fecc6b03a86cbe344c14def6a842908132 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Tue, 24 Feb 2026 18:50:43 +0100 Subject: [PATCH 02/11] fix(a01): corrected jellyfin patch --- .../a01/overlays/test/patches/jellyfin.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/environments/customers/a01/overlays/test/patches/jellyfin.yaml b/environments/customers/a01/overlays/test/patches/jellyfin.yaml index eb6013c..0e04644 100644 --- a/environments/customers/a01/overlays/test/patches/jellyfin.yaml +++ b/environments/customers/a01/overlays/test/patches/jellyfin.yaml @@ -1,11 +1,3 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: patch -spec: - source: - helm: - valuesObject: - persistence: - config: - size: 10Gi +- op: replace + path: /spec/source/helm/valuesObject/persistence/config/size + value: 10Gi From eb4be9ce2a6c1f6978611b7210e53aa3ab2efb74 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Tue, 24 Feb 2026 18:51:38 +0100 Subject: [PATCH 03/11] fix(jellyfin): argo-project --- apps/filehosting/jellyfin/app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/filehosting/jellyfin/app.yaml b/apps/filehosting/jellyfin/app.yaml index dd10a84..68b235b 100644 --- a/apps/filehosting/jellyfin/app.yaml +++ b/apps/filehosting/jellyfin/app.yaml @@ -11,7 +11,7 @@ spec: allowEmpty: false syncOptions: - CreateNamespace=true - project: default + project: "{{ .customer.name }}-{{ .customer.project }}" destination: server: https://kubernetes.default.svc namespace: "{{ .customer.name }}-jellyfin-{{ .customer.stage }}" From afabcbc1fd6d58b336ce640908def1dd7cce9d82 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Tue, 24 Feb 2026 19:07:00 +0100 Subject: [PATCH 04/11] chore(jellyfin): added persistence to the media path --- apps/filehosting/jellyfin/app.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/filehosting/jellyfin/app.yaml b/apps/filehosting/jellyfin/app.yaml index 68b235b..527f7c4 100644 --- a/apps/filehosting/jellyfin/app.yaml +++ b/apps/filehosting/jellyfin/app.yaml @@ -40,9 +40,12 @@ spec: config: enabled: true accessMode: ReadWriteOnce - size: 500Gi + size: 5Gi storageClass: "{{ .cluster.defaultStorageClass }}" media: - enabled: false + enabled: true + accessMode: ReadWriteOnce + size: 5Gi + storageClass: "{{ .cluster.defaultStorageClass }}" cache: enabled: false From 7845c7f2ec03b3506eacc8deb4afa361fee01128 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Tue, 24 Feb 2026 19:08:00 +0100 Subject: [PATCH 05/11] chore(jellyfin): added persistence to the media path --- environments/customers/a01/overlays/test/patches/jellyfin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environments/customers/a01/overlays/test/patches/jellyfin.yaml b/environments/customers/a01/overlays/test/patches/jellyfin.yaml index 0e04644..23fe745 100644 --- a/environments/customers/a01/overlays/test/patches/jellyfin.yaml +++ b/environments/customers/a01/overlays/test/patches/jellyfin.yaml @@ -1,3 +1,3 @@ - op: replace - path: /spec/source/helm/valuesObject/persistence/config/size + path: /spec/source/helm/valuesObject/persistence/media/size value: 10Gi From ffb5ebc6b818c62abfcb75732bd819416c669854 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Thu, 26 Feb 2026 20:01:54 +0100 Subject: [PATCH 06/11] feat(pinchflat) setting up shared mediavault for pinchflat and jellyfin --- apps/filehosting/pinchflat/app.yaml | 127 ++++++++++++++++++ apps/filehosting/pinchflat/kustomization.yaml | 4 + .../a01/overlays/test/kustomization.yaml | 9 ++ .../a01/overlays/test/patches/jellyfin.yaml | 6 +- .../test/patches/pinchflat-service.yaml | 5 + .../a01/overlays/test/patches/pinchflat.yaml | 7 + 6 files changed, 155 insertions(+), 3 deletions(-) create mode 100644 apps/filehosting/pinchflat/app.yaml create mode 100644 apps/filehosting/pinchflat/kustomization.yaml create mode 100644 environments/customers/a01/overlays/test/patches/pinchflat-service.yaml create mode 100644 environments/customers/a01/overlays/test/patches/pinchflat.yaml diff --git a/apps/filehosting/pinchflat/app.yaml b/apps/filehosting/pinchflat/app.yaml new file mode 100644 index 0000000..aeb7f15 --- /dev/null +++ b/apps/filehosting/pinchflat/app.yaml @@ -0,0 +1,127 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: pinchflat + namespace: "{{ .customer.name }}-reserved" +spec: + syncPolicy: + automated: + prune: true + selfHeal: false + allowEmpty: false + syncOptions: + - CreateNamespace=true + project: "{{ .customer.name }}-{{ .customer.project }}" + destination: + server: https://kubernetes.default.svc + namespace: "{{ .customer.name }}-pinchflat-{{ .customer.stage }}" + source: + repoURL: https://bedag.github.io/helm-charts + targetRevision: 2.0.0 + chart: raw + helm: + valuesObject: + resources: + - apiVersion: apps/v1 + kind: Deployment + metadata: + name: pinchflat + labels: + app: pinchflat + spec: + replicas: 1 + selector: + matchLabels: + app: pinchflat + template: + metadata: + labels: + app: pinchflat + spec: + containers: + - name: pinchflat + image: ghcr.io/kieraneglin/pinchflat:latest + ports: + - name: http + containerPort: 8945 + env: + - name: TZ + value: Europe/Zurich + - name: LOG_LEVEL + value: info + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 1000m + memory: 2Gi + volumeMounts: + - name: pinchflat-config + mountPath: /config + - name: media-library + mountPath: /downloads + volumes: + - name: pinchflat-config + persistentVolumeClaim: + claimName: pinchflat-config + - name: media-library + persistentVolumeClaim: + claimName: media-library + - apiVersion: v1 + kind: Service + metadata: + name: pinchflat + spec: + selector: + app: pinchflat + ports: + - name: http + port: 8945 + targetPort: http + type: ClusterIP + - apiVersion: networking.k8s.io/v1 + kind: Ingress + metadata: + name: pinchflat + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod-nginx + spec: + ingressClassName: "{{ .cluster.defaultIngressClass }}" + rules: + - host: "pinchflat.{{ .customer.primaryDomain }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: pinchflat + port: + number: 8945 + tls: + - hosts: + - "pinchflat.{{ .customer.primaryDomain }}" + secretName: pinchflat-tls + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: pinchflat-config + spec: + accessModes: + - ReadWriteOnce + storageClassName: "{{ .cluster.defaultStorageClass }}" + resources: + requests: + storage: 2Gi + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: media-library + spec: + accessModes: + - ReadWriteOnce + storageClassName: "{{ .cluster.defaultStorageClass }}" + resources: + requests: + storage: 10Gi diff --git a/apps/filehosting/pinchflat/kustomization.yaml b/apps/filehosting/pinchflat/kustomization.yaml new file mode 100644 index 0000000..30ecf93 --- /dev/null +++ b/apps/filehosting/pinchflat/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - app.yaml diff --git a/environments/customers/a01/overlays/test/kustomization.yaml b/environments/customers/a01/overlays/test/kustomization.yaml index 1420c2f..667f832 100644 --- a/environments/customers/a01/overlays/test/kustomization.yaml +++ b/environments/customers/a01/overlays/test/kustomization.yaml @@ -5,8 +5,17 @@ nameSuffix: "-test" resources: - placeholder-configmap.yaml - ../../../../../apps/filehosting/jellyfin/ + - ../../../../../apps/filehosting/pinchflat/ patches: - target: kind: Application name: jellyfin path: patches/jellyfin.yaml + - target: + kind: Application + name: pinchflat + path: patches/pinchflat.yaml + - target: + kind: Application + name: pinchflat + path: patches/pinchflat-service.yaml diff --git a/environments/customers/a01/overlays/test/patches/jellyfin.yaml b/environments/customers/a01/overlays/test/patches/jellyfin.yaml index 23fe745..a2d2f63 100644 --- a/environments/customers/a01/overlays/test/patches/jellyfin.yaml +++ b/environments/customers/a01/overlays/test/patches/jellyfin.yaml @@ -1,3 +1,3 @@ -- op: replace - path: /spec/source/helm/valuesObject/persistence/media/size - value: 10Gi +- op: add + path: /spec/source/helm/valuesObject/persistence/media/existingClaim + value: media-library diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml new file mode 100644 index 0000000..165bf8f --- /dev/null +++ b/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml @@ -0,0 +1,5 @@ +- op: replace + path: /spec/source/helm/valuesObject/resources/1/spec/type + value: LoadBalancer +- op: remove + path: /spec/source/helm/valuesObject/resources/2 diff --git a/environments/customers/a01/overlays/test/patches/pinchflat.yaml b/environments/customers/a01/overlays/test/patches/pinchflat.yaml new file mode 100644 index 0000000..1c132c6 --- /dev/null +++ b/environments/customers/a01/overlays/test/patches/pinchflat.yaml @@ -0,0 +1,7 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: pinchflat +spec: + destination: + namespace: a01-jellyfin-test From 15a3c6537f529426d12d012df14393e36ef64464 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Thu, 26 Feb 2026 20:13:34 +0100 Subject: [PATCH 07/11] chore(pinchflat): simplifying and testing in a01 --- apps/filehosting/pinchflat/app.yaml | 38 +------------------ .../a01/overlays/test/kustomization.yaml | 4 +- .../a01/overlays/test/patches/ghost.yaml | 7 ---- .../a01/overlays/test/patches/jellyfin.yaml | 6 +-- .../overlays/test/patches/pinchflat-rwo.yaml | 16 ++++++++ .../test/patches/pinchflat-service.yaml | 2 - .../a01/overlays/test/patches/pinchflat.yaml | 7 ---- 7 files changed, 23 insertions(+), 57 deletions(-) delete mode 100644 environments/customers/a01/overlays/test/patches/ghost.yaml create mode 100644 environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml delete mode 100644 environments/customers/a01/overlays/test/patches/pinchflat.yaml diff --git a/apps/filehosting/pinchflat/app.yaml b/apps/filehosting/pinchflat/app.yaml index aeb7f15..c8cf8ad 100644 --- a/apps/filehosting/pinchflat/app.yaml +++ b/apps/filehosting/pinchflat/app.yaml @@ -14,7 +14,7 @@ spec: project: "{{ .customer.name }}-{{ .customer.project }}" destination: server: https://kubernetes.default.svc - namespace: "{{ .customer.name }}-pinchflat-{{ .customer.stage }}" + namespace: "{{ .customer.name }}-jellyfin-{{ .customer.stage }}" source: repoURL: https://bedag.github.io/helm-charts targetRevision: 2.0.0 @@ -67,7 +67,7 @@ spec: claimName: pinchflat-config - name: media-library persistentVolumeClaim: - claimName: media-library + claimName: "{{ .customer.name }}-jellyfin-{{ .customer.stage }}-media" - apiVersion: v1 kind: Service metadata: @@ -80,29 +80,6 @@ spec: port: 8945 targetPort: http type: ClusterIP - - apiVersion: networking.k8s.io/v1 - kind: Ingress - metadata: - name: pinchflat - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod-nginx - spec: - ingressClassName: "{{ .cluster.defaultIngressClass }}" - rules: - - host: "pinchflat.{{ .customer.primaryDomain }}" - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: pinchflat - port: - number: 8945 - tls: - - hosts: - - "pinchflat.{{ .customer.primaryDomain }}" - secretName: pinchflat-tls - apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -114,14 +91,3 @@ spec: resources: requests: storage: 2Gi - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: media-library - spec: - accessModes: - - ReadWriteOnce - storageClassName: "{{ .cluster.defaultStorageClass }}" - resources: - requests: - storage: 10Gi diff --git a/environments/customers/a01/overlays/test/kustomization.yaml b/environments/customers/a01/overlays/test/kustomization.yaml index 667f832..f989e27 100644 --- a/environments/customers/a01/overlays/test/kustomization.yaml +++ b/environments/customers/a01/overlays/test/kustomization.yaml @@ -14,8 +14,8 @@ patches: - target: kind: Application name: pinchflat - path: patches/pinchflat.yaml + path: patches/pinchflat-service.yaml - target: kind: Application name: pinchflat - path: patches/pinchflat-service.yaml + path: patches/pinchflat-rwo.yaml diff --git a/environments/customers/a01/overlays/test/patches/ghost.yaml b/environments/customers/a01/overlays/test/patches/ghost.yaml deleted file mode 100644 index 5806863..0000000 --- a/environments/customers/a01/overlays/test/patches/ghost.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: patch -spec: - destination: - namespace: a01-ghost \ No newline at end of file diff --git a/environments/customers/a01/overlays/test/patches/jellyfin.yaml b/environments/customers/a01/overlays/test/patches/jellyfin.yaml index a2d2f63..23fe745 100644 --- a/environments/customers/a01/overlays/test/patches/jellyfin.yaml +++ b/environments/customers/a01/overlays/test/patches/jellyfin.yaml @@ -1,3 +1,3 @@ -- op: add - path: /spec/source/helm/valuesObject/persistence/media/existingClaim - value: media-library +- op: replace + path: /spec/source/helm/valuesObject/persistence/media/size + value: 10Gi diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml new file mode 100644 index 0000000..909c5eb --- /dev/null +++ b/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml @@ -0,0 +1,16 @@ +- op: add + path: /spec/source/helm/valuesObject/resources/0/spec/template/spec/affinity + value: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - jellyfin + - key: app.kubernetes.io/instance + operator: In + values: + - a01-jellyfin-test + topologyKey: kubernetes.io/hostname diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml index 165bf8f..47eea00 100644 --- a/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml +++ b/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml @@ -1,5 +1,3 @@ - op: replace path: /spec/source/helm/valuesObject/resources/1/spec/type value: LoadBalancer -- op: remove - path: /spec/source/helm/valuesObject/resources/2 diff --git a/environments/customers/a01/overlays/test/patches/pinchflat.yaml b/environments/customers/a01/overlays/test/patches/pinchflat.yaml deleted file mode 100644 index 1c132c6..0000000 --- a/environments/customers/a01/overlays/test/patches/pinchflat.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: pinchflat -spec: - destination: - namespace: a01-jellyfin-test From 2245f505d15d19a4f0507d8a68a8c0de453b3dd5 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Thu, 26 Feb 2026 20:20:02 +0100 Subject: [PATCH 08/11] fix(a01): testing fix for pinchflat node scheduling --- .../customers/a01/overlays/test/patches/pinchflat-rwo.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml index 909c5eb..cb53a24 100644 --- a/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml +++ b/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml @@ -9,8 +9,4 @@ operator: In values: - jellyfin - - key: app.kubernetes.io/instance - operator: In - values: - - a01-jellyfin-test topologyKey: kubernetes.io/hostname From cbcbdfdcdc56703945bf7a557689893c1a849c45 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Thu, 26 Feb 2026 20:54:49 +0100 Subject: [PATCH 09/11] chore(pinchflat): simplified deployment --- apps/filehosting/pinchflat/app.yaml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/apps/filehosting/pinchflat/app.yaml b/apps/filehosting/pinchflat/app.yaml index c8cf8ad..6205360 100644 --- a/apps/filehosting/pinchflat/app.yaml +++ b/apps/filehosting/pinchflat/app.yaml @@ -63,8 +63,7 @@ spec: mountPath: /downloads volumes: - name: pinchflat-config - persistentVolumeClaim: - claimName: pinchflat-config + emptyDir: {} - name: media-library persistentVolumeClaim: claimName: "{{ .customer.name }}-jellyfin-{{ .customer.stage }}-media" @@ -80,14 +79,3 @@ spec: port: 8945 targetPort: http type: ClusterIP - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: pinchflat-config - spec: - accessModes: - - ReadWriteOnce - storageClassName: "{{ .cluster.defaultStorageClass }}" - resources: - requests: - storage: 2Gi From 288ec7a72a6a149e0b81465d406e5aaf6813c950 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Thu, 26 Feb 2026 20:54:55 +0100 Subject: [PATCH 10/11] chore(pinchflat): simplified deployment --- apps/filehosting/pinchflat/app.yaml | 10 ++++++++ .../a01/overlays/test/kustomization.yaml | 6 +---- .../overlays/test/patches/pinchflat-rwo.yaml | 12 ---------- .../test/patches/pinchflat-service.yaml | 3 --- .../a01/overlays/test/patches/pinchflat.yaml | 23 +++++++++++++++++++ 5 files changed, 34 insertions(+), 20 deletions(-) delete mode 100644 environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml delete mode 100644 environments/customers/a01/overlays/test/patches/pinchflat-service.yaml create mode 100644 environments/customers/a01/overlays/test/patches/pinchflat.yaml diff --git a/apps/filehosting/pinchflat/app.yaml b/apps/filehosting/pinchflat/app.yaml index 6205360..b342572 100644 --- a/apps/filehosting/pinchflat/app.yaml +++ b/apps/filehosting/pinchflat/app.yaml @@ -38,6 +38,16 @@ spec: labels: app: pinchflat spec: + affinity: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - jellyfin + topologyKey: kubernetes.io/hostname containers: - name: pinchflat image: ghcr.io/kieraneglin/pinchflat:latest diff --git a/environments/customers/a01/overlays/test/kustomization.yaml b/environments/customers/a01/overlays/test/kustomization.yaml index f989e27..23327a8 100644 --- a/environments/customers/a01/overlays/test/kustomization.yaml +++ b/environments/customers/a01/overlays/test/kustomization.yaml @@ -14,8 +14,4 @@ patches: - target: kind: Application name: pinchflat - path: patches/pinchflat-service.yaml - - target: - kind: Application - name: pinchflat - path: patches/pinchflat-rwo.yaml + path: patches/pinchflat.yaml diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml deleted file mode 100644 index cb53a24..0000000 --- a/environments/customers/a01/overlays/test/patches/pinchflat-rwo.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- op: add - path: /spec/source/helm/valuesObject/resources/0/spec/template/spec/affinity - value: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - jellyfin - topologyKey: kubernetes.io/hostname diff --git a/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml b/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml deleted file mode 100644 index 47eea00..0000000 --- a/environments/customers/a01/overlays/test/patches/pinchflat-service.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- op: replace - path: /spec/source/helm/valuesObject/resources/1/spec/type - value: LoadBalancer diff --git a/environments/customers/a01/overlays/test/patches/pinchflat.yaml b/environments/customers/a01/overlays/test/patches/pinchflat.yaml new file mode 100644 index 0000000..2b07dc3 --- /dev/null +++ b/environments/customers/a01/overlays/test/patches/pinchflat.yaml @@ -0,0 +1,23 @@ +- op: replace + path: /spec/source/helm/valuesObject/resources/1/spec/type + value: LoadBalancer +- op: replace + path: /spec/source/helm/valuesObject/resources/0/spec/template/spec/volumes/0 + value: + name: pinchflat-config + persistentVolumeClaim: + claimName: pinchflat-config +- op: add + path: /spec/source/helm/valuesObject/resources/- + value: + apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: pinchflat-config + spec: + accessModes: + - ReadWriteMany + storageClassName: nfs + resources: + requests: + storage: 2Gi From 444c4d794b8cfd10f38da9a2168129d13beb3bd0 Mon Sep 17 00:00:00 2001 From: Daniel Hendricken Date: Fri, 27 Feb 2026 08:13:12 +0100 Subject: [PATCH 11/11] chore(a01): rollout to prod a01 --- apps/filehosting/jellyfin/app.yaml | 2 +- .../a01/overlays/prod/kustomization.yaml | 2 ++ .../a01/overlays/prod/patches/jellyfin.yaml | 19 ++++++++++++++++++ .../a01/overlays/prod/patches/pinchflat.yaml | 20 +++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 environments/customers/a01/overlays/prod/patches/jellyfin.yaml create mode 100644 environments/customers/a01/overlays/prod/patches/pinchflat.yaml diff --git a/apps/filehosting/jellyfin/app.yaml b/apps/filehosting/jellyfin/app.yaml index 527f7c4..97564d4 100644 --- a/apps/filehosting/jellyfin/app.yaml +++ b/apps/filehosting/jellyfin/app.yaml @@ -22,7 +22,7 @@ spec: helm: valuesObject: service: - type: LoadBalancer + type: ClusterIP ingress: enabled: false jellyfin: diff --git a/environments/customers/a01/overlays/prod/kustomization.yaml b/environments/customers/a01/overlays/prod/kustomization.yaml index 1684cff..54bc51f 100644 --- a/environments/customers/a01/overlays/prod/kustomization.yaml +++ b/environments/customers/a01/overlays/prod/kustomization.yaml @@ -8,6 +8,8 @@ resources: - ../../../../../apps/filehosting/nextcloud/ # - ../../../../../apps/productivity/overleaf/ - ../../../../../apps/productivity/jupyterhub/ + - ../../../../../apps/filehosting/jellyfin/ + - ../../../../../apps/filehosting/pinchflat/ patches: # - target: # kind: Application diff --git a/environments/customers/a01/overlays/prod/patches/jellyfin.yaml b/environments/customers/a01/overlays/prod/patches/jellyfin.yaml new file mode 100644 index 0000000..cc246b0 --- /dev/null +++ b/environments/customers/a01/overlays/prod/patches/jellyfin.yaml @@ -0,0 +1,19 @@ +- op: replace + path: /spec/source/helm/valuesObject/persistence/media/size + value: 100Gi +- op: replace + path: /spec/source/helm/valuesObject/ingress + value: + enabled: true + className: nginx + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod-nginx + hosts: + - host: jellyfin.{{ .customer.domain }} + paths: + - path: / + pathType: ImplementationSpecific + tls: + - hosts: + - jellyfin.{{ .customer.domain }} + secretName: jellyfin-tls \ No newline at end of file diff --git a/environments/customers/a01/overlays/prod/patches/pinchflat.yaml b/environments/customers/a01/overlays/prod/patches/pinchflat.yaml new file mode 100644 index 0000000..d54cea2 --- /dev/null +++ b/environments/customers/a01/overlays/prod/patches/pinchflat.yaml @@ -0,0 +1,20 @@ +- op: replace + path: /spec/source/helm/valuesObject/resources/0/spec/template/spec/volumes/0 + value: + name: pinchflat-config + persistentVolumeClaim: + claimName: pinchflat-config +- op: add + path: /spec/source/helm/valuesObject/resources/- + value: + apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: pinchflat-config + spec: + accessModes: + - ReadWriteMany + storageClassName: nfs + resources: + requests: + storage: 2Gi \ No newline at end of file