add exportarr sidecar to readarr

This commit is contained in:
SeanOMik 2023-05-11 01:35:47 -04:00
parent 98aa3893f0
commit aaec65e8b5
2 changed files with 68 additions and 0 deletions

View File

@ -18,13 +18,41 @@ spec:
image: image:
repository: lscr.io/linuxserver/readarr repository: lscr.io/linuxserver/readarr
tag: develop 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: env:
TZ: America/New_York TZ: America/New_York
service: service:
main: main:
ports: ports:
http: http:
port: 8787 port: 8787
probes: probes:
liveness: liveness:
enabled: true enabled: true
@ -39,6 +67,7 @@ spec:
failureThreshold: 3 failureThreshold: 3
startup: startup:
enabled: false enabled: false
ingress: ingress:
main: main:
enabled: true enabled: true
@ -55,6 +84,7 @@ spec:
- hosts: - hosts:
- *host - *host
secretName: wildcard-main-tls secretName: wildcard-main-tls
persistence: persistence:
config: config:
enabled: true enabled: true
@ -67,6 +97,10 @@ spec:
hostPath: /mnt/MainPool/Media hostPath: /mnt/MainPool/Media
mountPath: /storage mountPath: /storage
serviceMonitor:
main:
enabled: true
resources: resources:
requests: requests:
cpu: 1m cpu: 1m

View File

@ -18,13 +18,41 @@ spec:
image: image:
repository: lscr.io/linuxserver/readarr repository: lscr.io/linuxserver/readarr
tag: develop 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: env:
TZ: America/New_York TZ: America/New_York
service: service:
main: main:
ports: ports:
http: http:
port: 8787 port: 8787
probes: probes:
liveness: liveness:
enabled: true enabled: true
@ -39,6 +67,7 @@ spec:
failureThreshold: 3 failureThreshold: 3
startup: startup:
enabled: false enabled: false
ingress: ingress:
main: main:
enabled: true enabled: true
@ -55,6 +84,7 @@ spec:
- hosts: - hosts:
- *host - *host
secretName: wildcard-main-tls secretName: wildcard-main-tls
persistence: persistence:
config: config:
enabled: true enabled: true
@ -67,6 +97,10 @@ spec:
hostPath: /mnt/MainPool/Media hostPath: /mnt/MainPool/Media
mountPath: /storage mountPath: /storage
serviceMonitor:
main:
enabled: true
resources: resources:
requests: requests:
cpu: 1m cpu: 1m