From aaec65e8b51772f18016f03c9cb24fbdf789f04c Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 11 May 2023 01:35:47 -0400 Subject: [PATCH] add exportarr sidecar to readarr --- .../apps/download/readarr/audiobook-helm.yaml | 34 +++++++++++++++++++ cluster/apps/download/readarr/ebook-helm.yaml | 34 +++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/cluster/apps/download/readarr/audiobook-helm.yaml b/cluster/apps/download/readarr/audiobook-helm.yaml index fbebdba..7fdce11 100644 --- a/cluster/apps/download/readarr/audiobook-helm.yaml +++ b/cluster/apps/download/readarr/audiobook-helm.yaml @@ -18,13 +18,41 @@ spec: image: repository: lscr.io/linuxserver/readarr tag: develop + + # Metrics sidecar + sidecars: + exportarr: + image: ghcr.io/onedr0p/exportarr:latest + args: + - readarr + ports: + - name: metrics + containerPort: 9000 + env: + - name: URL + value: "http://localhost" + - name: CONFIG + value: "/config/config.xml" + - name: PORT + value: 9000 + - name: ENABLE_ADDITIONAL_METRICS + value: "true" + - name: ENABLE_UNKNOWN_QUEUE_ITEMS + value: "true" + volumeMounts: + - name: config + mountPath: /config + readOnly: true + env: TZ: America/New_York + service: main: ports: http: port: 8787 + probes: liveness: enabled: true @@ -39,6 +67,7 @@ spec: failureThreshold: 3 startup: enabled: false + ingress: main: enabled: true @@ -55,6 +84,7 @@ spec: - hosts: - *host secretName: wildcard-main-tls + persistence: config: enabled: true @@ -67,6 +97,10 @@ spec: hostPath: /mnt/MainPool/Media mountPath: /storage + serviceMonitor: + main: + enabled: true + resources: requests: cpu: 1m diff --git a/cluster/apps/download/readarr/ebook-helm.yaml b/cluster/apps/download/readarr/ebook-helm.yaml index 03822b3..81b614e 100644 --- a/cluster/apps/download/readarr/ebook-helm.yaml +++ b/cluster/apps/download/readarr/ebook-helm.yaml @@ -18,13 +18,41 @@ spec: image: repository: lscr.io/linuxserver/readarr tag: develop + + # Metrics sidecar + sidecars: + exportarr: + image: ghcr.io/onedr0p/exportarr:latest + args: + - readarr + ports: + - name: metrics + containerPort: 9000 + env: + - name: URL + value: "http://localhost" + - name: CONFIG + value: "/config/config.xml" + - name: PORT + value: 9000 + - name: ENABLE_ADDITIONAL_METRICS + value: "true" + - name: ENABLE_UNKNOWN_QUEUE_ITEMS + value: "true" + volumeMounts: + - name: config + mountPath: /config + readOnly: true + env: TZ: America/New_York + service: main: ports: http: port: 8787 + probes: liveness: enabled: true @@ -39,6 +67,7 @@ spec: failureThreshold: 3 startup: enabled: false + ingress: main: enabled: true @@ -55,6 +84,7 @@ spec: - hosts: - *host secretName: wildcard-main-tls + persistence: config: enabled: true @@ -67,6 +97,10 @@ spec: hostPath: /mnt/MainPool/Media mountPath: /storage + serviceMonitor: + main: + enabled: true + resources: requests: cpu: 1m