From 225fa64f3970e3ccc1d7eef0727a6bb3566df163 Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Wed, 6 Nov 2024 18:13:21 +0000 Subject: [PATCH] Added filebrowser --- .../templates/filebrowser-chart.yaml | 56 +++++++++++++++++++ .../templates/filebrowser-ingress.yaml | 14 +++++ thomflix-postinstall/values.yaml | 1 + 3 files changed, 71 insertions(+) create mode 100644 thomflix-argocd-apps/templates/filebrowser-chart.yaml create mode 100644 thomflix-postinstall/templates/filebrowser-ingress.yaml diff --git a/thomflix-argocd-apps/templates/filebrowser-chart.yaml b/thomflix-argocd-apps/templates/filebrowser-chart.yaml new file mode 100644 index 0000000..8122182 --- /dev/null +++ b/thomflix-argocd-apps/templates/filebrowser-chart.yaml @@ -0,0 +1,56 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: filebrowser + namespace: {{ .Values.argocd.namespace }} + annotations: + argocd.argoproj.io/sync-wave: "0" + notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578" +spec: + project: {{ .Values.argocd.project }} + source: + repoURL: "tccr.io/truecharts" + chart: filebrowser + targetRevision: 11.x + helm: + releaseName: filebrowser + valuesObject: + persistence: + config: + enabled: true + mountPath: /config + type: pvc + namespace: {{ .Values.mainNamespace }} + accessModes: ReadWriteOnce + size: 100Mi + storageClass: {{ .Values.generalConfigStorageClass }} + database: + enabled: true + mountPath: /database + type: pvc + namespace: {{ .Values.mainNamespace }} + accessModes: ReadWriteOnce + size: 100Mi + storageClass: {{ .Values.generalConfigStorageClass }} + data: + enabled: true + mountPath: /data + type: pvc + namespace: {{ .Values.mainNamespace }} + existingClaim: thomflix-media + destination: + server: {{ .Values.mainDestination }} + namespace: {{ .Values.mainNamespace }} + syncPolicy: + automated: + prune: true # Automatically remove resources no longer in the repo + selfHeal: true # Automatically self-heal when drift is detected + syncOptions: + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - CreateNamespace=true + ignoreDifferences: + - group: apps + kind: Deployment + jsonPointers: + - /spec/template/spec/hostUsers diff --git a/thomflix-postinstall/templates/filebrowser-ingress.yaml b/thomflix-postinstall/templates/filebrowser-ingress.yaml new file mode 100644 index 0000000..149c4f5 --- /dev/null +++ b/thomflix-postinstall/templates/filebrowser-ingress.yaml @@ -0,0 +1,14 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: filebrowser-thomflix +spec: + defaultBackend: + service: + name: filebrowser + port: + number: 10187 + ingressClassName: tailscale + tls: + - hosts: + - {{ .Values.tailscaleIngresses.filebrowserHostname }} diff --git a/thomflix-postinstall/values.yaml b/thomflix-postinstall/values.yaml index 93c6cd5..4bfa98f 100644 --- a/thomflix-postinstall/values.yaml +++ b/thomflix-postinstall/values.yaml @@ -2,3 +2,4 @@ tailscaleIngresses: jackettHostname: thomflix-jackett sonarrHostname: thomflix-sonarr radarrHostname: thomflix-radarr + filebrowserHostname: thomflix-files