From 64600c00b16ea4792359fbb6836d069bc73710eb Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Wed, 6 Nov 2024 18:05:24 +0000 Subject: [PATCH] Added radarr --- .../templates/radarr-chart.yaml | 58 +++++++++++++++++++ .../templates/radarr-ingress.yaml | 16 +++++ thomflix-postinstall/values.yaml | 1 + 3 files changed, 75 insertions(+) create mode 100644 thomflix-argocd-apps/templates/radarr-chart.yaml create mode 100644 thomflix-postinstall/templates/radarr-ingress.yaml diff --git a/thomflix-argocd-apps/templates/radarr-chart.yaml b/thomflix-argocd-apps/templates/radarr-chart.yaml new file mode 100644 index 0000000..3c84e9e --- /dev/null +++ b/thomflix-argocd-apps/templates/radarr-chart.yaml @@ -0,0 +1,58 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: radarr + 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: radarr + targetRevision: 23.x + helm: + releaseName: radarr + valuesObject: + persistence: + config: + type: pvc + storageClass: {{ .Values.generalConfigStorageClass }} + namespace: {{ .Values.mainNamespace }} + accessModes: ReadWriteOnce + size: 512Mi + enabled: true + targetSelector: + main: + main: + mountPath: /config + data: + enabled: true + type: pvc + existingClaim: thomflix-media + namespace: {{ .Values.mainNamespace }} + targetSelector: + main: + main: + subPath: "data" + mountPath: "/data" + metrics: + main: + enabled: false + 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/radarr-ingress.yaml b/thomflix-postinstall/templates/radarr-ingress.yaml new file mode 100644 index 0000000..34c05d8 --- /dev/null +++ b/thomflix-postinstall/templates/radarr-ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: radarr-thomflix + annotations: + tailscale.com/tags: "tag:k8s,tag:thomflix" +spec: + defaultBackend: + service: + name: radarr + port: + number: 7878 + ingressClassName: tailscale + tls: + - hosts: + - {{ .Values.tailscaleIngresses.radarrHostname }} diff --git a/thomflix-postinstall/values.yaml b/thomflix-postinstall/values.yaml index 5774c81..93c6cd5 100644 --- a/thomflix-postinstall/values.yaml +++ b/thomflix-postinstall/values.yaml @@ -1,3 +1,4 @@ tailscaleIngresses: jackettHostname: thomflix-jackett sonarrHostname: thomflix-sonarr + radarrHostname: thomflix-radarr