[lidarr/radarr/sonarr] add exportarr integration (#692)

This commit is contained in:
ᗪєνιη ᗷυнʟ 2021-03-18 10:27:06 -04:00 committed by GitHub
parent 11d18f1fe5
commit f81faa9219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 240 additions and 3 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 0.8.0.1886
description: Looks and smells like Sonarr but made for music
name: lidarr
version: 7.3.1
version: 7.4.0
kubeVersion: ">=1.16.0-0"
keywords:
- lidarr

View File

@ -0,0 +1,25 @@
# Test exportarr
persistence:
config:
enabled: true
emptyDir: true
additionalContainers:
- name: exportarr
image: ghcr.io/onedr0p/exportarr:v0.6.0
imagePullPolicy: IfNotPresent
args: ["exportarr", "lidarr"]
env:
- name: PORT
value: "32123"
- name: URL
value: "http://localhost"
- name: CONFIG
value: "/config/config.xml"
ports:
- name: exportarr
containerPort: 32123
volumeMounts:
- name: config
mountPath: /config
readOnly: true

View File

@ -0,0 +1,24 @@
{{- if .Values.prometheus.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ template "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.prometheus.podMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: exportarr
{{- with .Values.prometheus.podMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.prometheus.podMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
{{- end }}

View File

@ -67,3 +67,33 @@ persistence:
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""
# Enable gathering Prometheus metrics
prometheus:
podMonitor:
enabled: false
interval: 1m
scrapeTimeout: 1m30s
additionalLabels: {}
# # When using the prometheus.podMonitor the following
# # container is required
# additionalContainers:
# - name: exportarr
# image: ghcr.io/onedr0p/exportarr:v0.6.0
# imagePullPolicy: IfNotPresent
# args: ["exportarr", "lidarr"]
# env:
# - name: PORT
# value: "32123"
# - name: URL
# value: "http://localhost"
# - name: CONFIG
# value: "/config/config.xml"
# ports:
# - name: exportarr
# containerPort: 32123
# volumeMounts:
# - name: config
# mountPath: /config
# readOnly: true

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 3.0.2.4552
description: A fork of Sonarr to work with movies à la Couchpotato
name: radarr
version: 9.3.1
version: 9.4.0
kubeVersion: ">=1.16.0-0"
keywords:
- radarr

View File

@ -0,0 +1,25 @@
# Test exportarr
persistence:
config:
enabled: true
emptyDir: true
additionalContainers:
- name: exportarr
image: ghcr.io/onedr0p/exportarr:v0.6.0
imagePullPolicy: IfNotPresent
args: ["exportarr", "radarr"]
env:
- name: PORT
value: "32123"
- name: URL
value: "http://localhost"
- name: CONFIG
value: "/config/config.xml"
ports:
- name: exportarr
containerPort: 32123
volumeMounts:
- name: config
mountPath: /config
readOnly: true

View File

@ -0,0 +1,24 @@
{{- if .Values.prometheus.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ template "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.prometheus.podMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: exportarr
{{- with .Values.prometheus.podMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.prometheus.podMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
{{- end }}

View File

@ -67,3 +67,33 @@ persistence:
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""
# Enable gathering Prometheus metrics
prometheus:
podMonitor:
enabled: false
interval: 1m
scrapeTimeout: 1m30s
additionalLabels: {}
# # When using the prometheus.podMonitor the following
# # container is required
# additionalContainers:
# - name: exportarr
# image: ghcr.io/onedr0p/exportarr:v0.6.0
# imagePullPolicy: IfNotPresent
# args: ["exportarr", "radarr"]
# env:
# - name: PORT
# value: "32123"
# - name: URL
# value: "http://localhost"
# - name: CONFIG
# value: "/config/config.xml"
# ports:
# - name: exportarr
# containerPort: 32123
# volumeMounts:
# - name: config
# mountPath: /config
# readOnly: true

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 3.0.4.993
description: Smart PVR for newsgroup and bittorrent users
name: sonarr
version: 9.3.1
version: 9.4.0
kubeVersion: ">=1.16.0-0"
keywords:
- sonarr

View File

@ -0,0 +1,25 @@
# Test exportarr
persistence:
config:
enabled: true
emptyDir: true
additionalContainers:
- name: exportarr
image: ghcr.io/onedr0p/exportarr:v0.6.0
imagePullPolicy: IfNotPresent
args: ["exportarr", "sonarr"]
env:
- name: PORT
value: "32123"
- name: URL
value: "http://localhost"
- name: CONFIG
value: "/config/config.xml"
ports:
- name: exportarr
containerPort: 32123
volumeMounts:
- name: config
mountPath: /config
readOnly: true

View File

@ -0,0 +1,24 @@
{{- if .Values.prometheus.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ template "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.prometheus.podMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: exportarr
{{- with .Values.prometheus.podMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.prometheus.podMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
{{- end }}

View File

@ -67,3 +67,33 @@ persistence:
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""
# Enable gathering Prometheus metrics
prometheus:
podMonitor:
enabled: false
interval: 1m
scrapeTimeout: 1m30s
additionalLabels: {}
# # When using the prometheus.podMonitor the following
# # container is required
# additionalContainers:
# - name: exportarr
# image: ghcr.io/onedr0p/exportarr:v0.6.0
# imagePullPolicy: IfNotPresent
# args: ["exportarr", "sonarr"]
# env:
# - name: PORT
# value: "32123"
# - name: URL
# value: "http://localhost"
# - name: CONFIG
# value: "/config/config.xml"
# ports:
# - name: exportarr
# containerPort: 32123
# volumeMounts:
# - name: config
# mountPath: /config
# readOnly: true