From f5cbefc00ea664eaa62a7f4794d5ca4ee867a2df Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Wed, 21 Aug 2024 19:47:10 -0700 Subject: [PATCH] Enable Readarr --- charts/ombi/templates/deployment.yaml | 21 +++++++++++++++++++++ charts/ombi/templates/ingress.yaml | 10 ++++++++++ charts/ombi/templates/service.yaml | 15 +++++++++++++++ charts/ombi/templates/volumes.yaml | 26 ++++++++++++++++++++++++++ charts/ombi/values.yaml | 4 ++++ 5 files changed, 76 insertions(+) diff --git a/charts/ombi/templates/deployment.yaml b/charts/ombi/templates/deployment.yaml index 796e068..e1b0dd2 100644 --- a/charts/ombi/templates/deployment.yaml +++ b/charts/ombi/templates/deployment.yaml @@ -86,6 +86,24 @@ spec: - mountPath: /data name: ombi-truenas-data {{- end -}} + {{ if .Values.readarr.enabled }} + - name: readarr + securityContext: + {{- toYaml .Values.securityContext | nindent 12}} + image: "lscr.io/linuxserver/readarr:develop" + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /config + name: readarr-config + - mountPath: /data + name: ombi-truenas-data + {{- end -}} {{if .Values.prowlarr.enabled}} - name: prowlarr securityContext: @@ -170,6 +188,9 @@ spec: - name: radarr-config persistentVolumeClaim: claimName: {{ include "ombi.fullname" . }}-radarr-config-pvc + - name: readarr-config + persistentVolumeClaim: + claimName: {{ include "ombi.fullname" . }}-readarr-config-pvc - name: prowlarr-config persistentVolumeClaim: claimName: {{ include "ombi.fullname" . }}-prowlarr-config-pvc diff --git a/charts/ombi/templates/ingress.yaml b/charts/ombi/templates/ingress.yaml index 2df8aba..47a89c7 100644 --- a/charts/ombi/templates/ingress.yaml +++ b/charts/ombi/templates/ingress.yaml @@ -78,6 +78,16 @@ spec: name: {{ include "ombi.fullname" . }}-radarr port: number: {{ .Values.service.radarrPort }} + - host: readarr.avril + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: {{ include "ombi.fullname" . }}-readarr + port: + number: {{ .Values.service.readarrPort }} - host: prowlarr.avril http: paths: diff --git a/charts/ombi/templates/service.yaml b/charts/ombi/templates/service.yaml index c52b99f..bd631ff 100644 --- a/charts/ombi/templates/service.yaml +++ b/charts/ombi/templates/service.yaml @@ -45,6 +45,21 @@ spec: --- apiVersion: v1 kind: Service +metadata: + name: {{ include "ombi.fullname" . }}-readarr + labels: + {{- include "ombi.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.readarrPort }} + targetPort: 8787 + protocol: TCP + selector: + {{- include "ombi.selectorLabels" . | nindent 4 }} +--- +apiVersion: v1 +kind: Service metadata: name: {{ include "ombi.fullname" . }}-prowlarr labels: diff --git a/charts/ombi/templates/volumes.yaml b/charts/ombi/templates/volumes.yaml index e0bad1e..34d16c5 100644 --- a/charts/ombi/templates/volumes.yaml +++ b/charts/ombi/templates/volumes.yaml @@ -136,6 +136,32 @@ spec: --- apiVersion: v1 kind: PersistentVolume +metadata: + name: {{ include "ombi.fullname" . }}-readarr-config-pv +spec: + capacity: + storage: 10M + accessModes: + - ReadWriteMany + nfs: + server: {{ $.Values.volume.configNFSServer }} + path: /mnt/BERTHA/etc/readarr +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ include "ombi.fullname" . }}-readarr-config-pvc +spec: + storageClassName: "" + volumeName: {{ include "ombi.fullname" . }}-readarr-config-pv + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10M +--- +apiVersion: v1 +kind: PersistentVolume metadata: name: {{ include "ombi.fullname" . }}-prowlarr-config-pv spec: diff --git a/charts/ombi/values.yaml b/charts/ombi/values.yaml index c336986..d1defa0 100644 --- a/charts/ombi/values.yaml +++ b/charts/ombi/values.yaml @@ -41,6 +41,7 @@ service: port: 3579 sonarrPort: 8989 radarrPort: 7878 + readarrPort: 8787 prowlarrPort: 9696 nzbgetWebPort: 6789 sabnzbdWebPort: 8080 @@ -103,6 +104,9 @@ sonarr: radarr: enabled: true +readarr: + enabled: true + prowlarr: enabled: true