convert to app template
This commit is contained in:
@@ -70,13 +70,20 @@ spec:
|
|||||||
key: /cl01tl/radarr5-4k/key
|
key: /cl01tl/radarr5-4k/key
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: key
|
property: key
|
||||||
- secretKey: HOMEPAGE_VAR_LIDARR_KEY
|
- secretKey: HOMEPAGE_VAR_LIDARR2_KEY
|
||||||
remoteRef:
|
remoteRef:
|
||||||
conversionStrategy: Default
|
conversionStrategy: Default
|
||||||
decodingStrategy: None
|
decodingStrategy: None
|
||||||
key: /cl01tl/lidarr2/key
|
key: /cl01tl/lidarr2/key
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: key
|
property: key
|
||||||
|
- secretKey: HOMEPAGE_VAR_READARR_BOOKS_KEY
|
||||||
|
remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: /cl01tl/readarr-books/key
|
||||||
|
metadataPolicy: None
|
||||||
|
property: key
|
||||||
- secretKey: HOMEPAGE_VAR_PROWLARR_KEY
|
- secretKey: HOMEPAGE_VAR_PROWLARR_KEY
|
||||||
remoteRef:
|
remoteRef:
|
||||||
conversionStrategy: Default
|
conversionStrategy: Default
|
||||||
|
@@ -485,11 +485,11 @@ homepage:
|
|||||||
icon: sonarr.png
|
icon: sonarr.png
|
||||||
description: TV Shows
|
description: TV Shows
|
||||||
href: https://sonarr.alexlebens.net
|
href: https://sonarr.alexlebens.net
|
||||||
siteMonitor: http://sonarr4.sonarr4:8989
|
siteMonitor: http://sonarr4.sonarr4:80
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
widget:
|
widget:
|
||||||
type: sonarr
|
type: sonarr
|
||||||
url: http://sonarr4.sonarr4:8989
|
url: http://sonarr4.sonarr4:80
|
||||||
key: {{ "{{HOMEPAGE_VAR_SONARR_KEY}}" }}
|
key: {{ "{{HOMEPAGE_VAR_SONARR_KEY}}" }}
|
||||||
fields: ["wanted", "queued", "series"]
|
fields: ["wanted", "queued", "series"]
|
||||||
enableQueue: false
|
enableQueue: false
|
||||||
@@ -497,11 +497,11 @@ homepage:
|
|||||||
icon: sonarr.png
|
icon: sonarr.png
|
||||||
description: TV Shows 4K
|
description: TV Shows 4K
|
||||||
href: https://sonarr-4k.alexlebens.net
|
href: https://sonarr-4k.alexlebens.net
|
||||||
siteMonitor: http://sonarr4-4k.sonarr4-4k:8989
|
siteMonitor: http://sonarr4-4k.sonarr4-4k:80
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
widget:
|
widget:
|
||||||
type: sonarr
|
type: sonarr
|
||||||
url: http://sonarr4-4k.sonarr4-4k:8989
|
url: http://sonarr4-4k.sonarr4-4k:80
|
||||||
key: {{ "{{HOMEPAGE_VAR_SONARR4K_KEY}}" }}
|
key: {{ "{{HOMEPAGE_VAR_SONARR4K_KEY}}" }}
|
||||||
fields: ["wanted", "queued", "series"]
|
fields: ["wanted", "queued", "series"]
|
||||||
enableQueue: false
|
enableQueue: false
|
||||||
@@ -510,11 +510,11 @@ homepage:
|
|||||||
icon: radarr.png
|
icon: radarr.png
|
||||||
description: Movies
|
description: Movies
|
||||||
href: https://radarr.alexlebens.net
|
href: https://radarr.alexlebens.net
|
||||||
siteMonitor: http://radarr5.radarr5:7878
|
siteMonitor: http://radarr5.radarr5:80
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
widget:
|
widget:
|
||||||
type: radarr
|
type: radarr
|
||||||
url: http://radarr5.radarr5:7878
|
url: http://radarr5.radarr5:80
|
||||||
key: {{ "{{HOMEPAGE_VAR_RADARR_KEY}}" }}
|
key: {{ "{{HOMEPAGE_VAR_RADARR_KEY}}" }}
|
||||||
fields: ["wanted", "queued", "movies"]
|
fields: ["wanted", "queued", "movies"]
|
||||||
enableQueue: false
|
enableQueue: false
|
||||||
@@ -522,11 +522,11 @@ homepage:
|
|||||||
icon: radarr.png
|
icon: radarr.png
|
||||||
description: Movies 4K
|
description: Movies 4K
|
||||||
href: https://radarr-4k.alexlebens.net
|
href: https://radarr-4k.alexlebens.net
|
||||||
siteMonitor: http://radarr5-4k.radarr5-4k:7878
|
siteMonitor: http://radarr5-4k.radarr5-4k:80
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
widget:
|
widget:
|
||||||
type: radarr
|
type: radarr
|
||||||
url: http://radarr5-4k.radarr5-4k:7878
|
url: http://radarr5-4k.radarr5-4k:80
|
||||||
key: {{ "{{HOMEPAGE_VAR_RADARR4K_KEY}}" }}
|
key: {{ "{{HOMEPAGE_VAR_RADARR4K_KEY}}" }}
|
||||||
fields: ["wanted", "queued", "movies"]
|
fields: ["wanted", "queued", "movies"]
|
||||||
enableQueue: false
|
enableQueue: false
|
||||||
@@ -540,14 +540,20 @@ homepage:
|
|||||||
widget:
|
widget:
|
||||||
type: lidarr
|
type: lidarr
|
||||||
url: http://lidarr2.lidarr2:80
|
url: http://lidarr2.lidarr2:80
|
||||||
key: {{ "{{HOMEPAGE_VAR_LIDARR_KEY}}" }}
|
key: {{ "{{HOMEPAGE_VAR_LIDARR2_KEY}}" }}
|
||||||
fields: ["wanted", "queued", "artists"]
|
fields: ["wanted", "queued", "artists"]
|
||||||
- Readarr Books:
|
- Readarr Books:
|
||||||
icon: readarr.png
|
icon: readarr.png
|
||||||
description: Books
|
description: Books
|
||||||
href: https://readarr-books.alexlebens.net
|
href: https://readarr-books.alexlebens.net
|
||||||
siteMonitor: http://readarr-books.readarr-books:8787
|
siteMonitor: http://readarr-books.readarr-books:80
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
|
widget:
|
||||||
|
type: readarr
|
||||||
|
url: http://readarr-books.readarr-books:80
|
||||||
|
key: {{ "{{HOMEPAGE_VAR_READARR_BOOKS_KEY}}" }}
|
||||||
|
fields: ["wanted", "queued", "series"]
|
||||||
|
enableQueue: false
|
||||||
- Lazy Librarian:
|
- Lazy Librarian:
|
||||||
icon: lazylibrarian.png
|
icon: lazylibrarian.png
|
||||||
description: Books
|
description: Books
|
||||||
|
@@ -10,12 +10,13 @@ home: ""
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Prowlarr/Prowlarr
|
- https://github.com/Prowlarr/Prowlarr
|
||||||
- https://github.com/onedr0p/containers/pkgs/container/prowlarr
|
- https://github.com/onedr0p/containers/pkgs/container/prowlarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/prowlarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: prowlarr
|
- name: app-template
|
||||||
version: 5.1.2
|
alias: prowlarr
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/prowlarr.png
|
icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/prowlarr.png
|
||||||
appVersion: 1.18.0.4543
|
appVersion: 1.18.0.4543
|
||||||
|
@@ -1,13 +1,65 @@
|
|||||||
prowlarr:
|
lidarr2:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/prowlarr
|
main:
|
||||||
tag: 1.18.0.4543
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
pod:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 568
|
||||||
|
runAsGroup: 568
|
||||||
|
fsGroup: 568
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
supplementalGroups:
|
||||||
|
- 44
|
||||||
|
- 100
|
||||||
|
- 109
|
||||||
|
- 65539
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/prowlarr
|
||||||
|
tag: 1.18.0.4543
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: US/Central
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:8686/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 9696
|
||||||
|
protocol: HTTP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -17,22 +69,21 @@ prowlarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: prowlarr
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: prowlarr-secret-tls
|
- secretName: prowlarr-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- prowlarr.alexlebens.net
|
- prowlarr.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
|
||||||
storageClass: ceph-block
|
storageClass: ceph-block
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
podSecurityContext:
|
retain: true
|
||||||
runAsUser: 1000
|
advancedMounts:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
main:
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
- path: /config
|
||||||
supplementalGroups:
|
readOnly: false
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
|
@@ -14,14 +14,15 @@ sources:
|
|||||||
- https://github.com/cloudnative-pg/cloudnative-pg
|
- https://github.com/cloudnative-pg/cloudnative-pg
|
||||||
- https://github.com/onedr0p/containers/pkgs/container/radarr
|
- https://github.com/onedr0p/containers/pkgs/container/radarr
|
||||||
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/radarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: radarr
|
- name: app-template
|
||||||
version: 17.1.2
|
alias: radarr5-4k
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
- name: postgres-cluster
|
- name: postgres-cluster
|
||||||
alias: postgres-16-cluster
|
alias: postgres-16-cluster
|
||||||
version: 3.5.0
|
version: 3.5.0
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: radarr5-4k-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: radarr5-4k-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
volumeName: "{{ .Release.Name }}-nfs-storage"
|
volumeName: radarr5-4k-nfs-storage
|
||||||
storageClassName: nfs-client
|
storageClassName: nfs-client
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: radarr5-4k-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: {{ .Release.Name }}
|
||||||
@@ -17,8 +17,8 @@ spec:
|
|||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: {{ .Values.persistence.media.nfsPath }}
|
path: /volume2/Storage
|
||||||
server: {{ .Values.persistence.media.nfsServer }}
|
server: synologybond.alexlebens.net
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- vers=4
|
||||||
- minorversion=1
|
- minorversion=1
|
||||||
|
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: radarr5-4k
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: radarr5-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: radarr5-4k
|
||||||
|
rules:
|
||||||
|
- alert: ExportarrAbsent
|
||||||
|
annotations:
|
||||||
|
description: Radarr5 4K Exportarr has disappeared from Prometheus
|
||||||
|
service discovery.
|
||||||
|
summary: Exportarr is down.
|
||||||
|
expr: |
|
||||||
|
absent(up{job=~".*radarr5_4k.*"} == 1)
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
- alert: Radarr54kDown
|
||||||
|
annotations:
|
||||||
|
description: Radarr5 4K service is down.
|
||||||
|
summary: Radarr5 4K is down.
|
||||||
|
expr: |
|
||||||
|
radarr5_4k_system_status{job=~".*radarr5_4k.*"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: radarr5-4k
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: radarr5-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: radarr5-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /metrics
|
@@ -1,35 +1,114 @@
|
|||||||
radarr:
|
radarr5-4k:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/radarr
|
main:
|
||||||
tag: 5.7.0.8882
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
RADARR__POSTGRES_MAIN_DB: radarr-main
|
revisionHistoryLimit: 3
|
||||||
RADARR__POSTGRES_LOG_DB: radarr-log
|
pod:
|
||||||
RADARR__POSTGRES_HOST:
|
securityContext:
|
||||||
valueFrom:
|
runAsUser: 568
|
||||||
secretKeyRef:
|
runAsGroup: 568
|
||||||
name: radarr5-4k-postgresql-16-cluster-app
|
fsGroup: 568
|
||||||
key: host
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
RADARR__POSTGRES_PORT:
|
supplementalGroups:
|
||||||
valueFrom:
|
- 44
|
||||||
secretKeyRef:
|
- 100
|
||||||
name: radarr5-4k-postgresql-16-cluster-app
|
- 109
|
||||||
key: port
|
- 65539
|
||||||
RADARR__POSTGRES_USER:
|
containers:
|
||||||
valueFrom:
|
main:
|
||||||
secretKeyRef:
|
image:
|
||||||
name: radarr5-4k-postgresql-16-cluster-app
|
repository: ghcr.io/onedr0p/radarr
|
||||||
key: user
|
tag: 5.7.0.8882
|
||||||
RADARR__POSTGRES_PASSWORD:
|
pullPolicy: IfNotPresent
|
||||||
valueFrom:
|
env:
|
||||||
secretKeyRef:
|
- name: TZ
|
||||||
name: radarr5-4k-postgresql-16-cluster-app
|
value: US/Central
|
||||||
key: password
|
- name: RADARR__POSTGRES_MAIN_DB
|
||||||
|
value: radarr-main
|
||||||
|
- name: RADARR__POSTGRES_LOG_DB
|
||||||
|
value: radarr-log
|
||||||
|
- name: RADARR__POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-4k-postgresql-16-cluster-app
|
||||||
|
key: host
|
||||||
|
- name: RADARR__POSTGRES_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-4k-postgresql-16-cluster-app
|
||||||
|
key: port
|
||||||
|
- name: RADARR__POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-4k-postgresql-16-cluster-app
|
||||||
|
key: username
|
||||||
|
- name: RADARR__POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-4k-postgresql-16-cluster-app
|
||||||
|
key: password
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:7878/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
metrics:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/exportarr
|
||||||
|
tag: v2.0.1
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args: ["radarr"]
|
||||||
|
env:
|
||||||
|
- name: URL
|
||||||
|
value: http://localhost
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config/config.xml
|
||||||
|
- name: PORT
|
||||||
|
value: 9793
|
||||||
|
- name: ENABLE_ADDITIONAL_METRICS
|
||||||
|
value: false
|
||||||
|
- name: ENABLE_UNKNOWN_QUEUE_ITEMS
|
||||||
|
value: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 7878
|
||||||
|
protocol: HTTP
|
||||||
|
metrics:
|
||||||
|
port: 9793
|
||||||
|
targetPort: 9793
|
||||||
|
protocol: TCP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -39,53 +118,34 @@ radarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: radarr5-4k
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: radarr5-4k-secret-tls
|
- secretName: radarr5-4k-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- radarr-4k.alexlebens.net
|
- radarr-4k.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
storageClass: ceph-block
|
||||||
mountPath: /config
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
metrics:
|
||||||
|
- path: /config
|
||||||
|
readOnly: true
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
mountPath: /mnt/store
|
|
||||||
type: pvc
|
|
||||||
existingClaim: radarr5-4k-nfs-storage
|
existingClaim: radarr5-4k-nfs-storage
|
||||||
podSecurityContext:
|
advancedMounts:
|
||||||
runAsUser: 1000
|
main:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
- path: /mnt/store
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
readOnly: false
|
||||||
supplementalGroups:
|
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
prometheusRule:
|
|
||||||
enabled: true
|
|
||||||
rules:
|
|
||||||
- alert: RadarrDown
|
|
||||||
annotations:
|
|
||||||
description: Radarr 4k service is down.
|
|
||||||
summary: Radarr 4k is down.
|
|
||||||
expr: |
|
|
||||||
radarr_system_status == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
exporter:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/exportarr
|
|
||||||
tag: v2.0.1
|
|
||||||
persistence:
|
|
||||||
media:
|
|
||||||
nfsPath: /volume2/Storage
|
|
||||||
nfsServer: synologybond.alexlebens.net
|
|
||||||
postgres-16-cluster:
|
postgres-16-cluster:
|
||||||
mode: standalone
|
mode: standalone
|
||||||
cluster:
|
cluster:
|
||||||
|
@@ -13,14 +13,15 @@ sources:
|
|||||||
- https://github.com/cloudnative-pg/cloudnative-pg
|
- https://github.com/cloudnative-pg/cloudnative-pg
|
||||||
- https://github.com/onedr0p/containers/pkgs/container/radarr
|
- https://github.com/onedr0p/containers/pkgs/container/radarr
|
||||||
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/radarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: radarr
|
- name: app-template
|
||||||
version: 17.1.2
|
alias: radarr5
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
- name: postgres-cluster
|
- name: postgres-cluster
|
||||||
alias: postgres-16-cluster
|
alias: postgres-16-cluster
|
||||||
version: 3.5.0
|
version: 3.5.0
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: radarr5-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: radarr5-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
volumeName: "{{ .Release.Name }}-nfs-storage"
|
volumeName: radarr5-nfs-storage
|
||||||
storageClassName: nfs-client
|
storageClassName: nfs-client
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: radarr5-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: radarr5-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
@@ -17,8 +17,8 @@ spec:
|
|||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: {{ .Values.persistence.media.nfsPath }}
|
path: /volume2/Storage
|
||||||
server: {{ .Values.persistence.media.nfsServer }}
|
server: synologybond.alexlebens.net
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- vers=4
|
||||||
- minorversion=1
|
- minorversion=1
|
||||||
|
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: radarr5
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: radarr5
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: radarr5
|
||||||
|
rules:
|
||||||
|
- alert: ExportarrAbsent
|
||||||
|
annotations:
|
||||||
|
description: Radarr5 Exportarr has disappeared from Prometheus
|
||||||
|
service discovery.
|
||||||
|
summary: Exportarr is down.
|
||||||
|
expr: |
|
||||||
|
absent(up{job=~".*radarr5.*"} == 1)
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
- alert: Radarr5Down
|
||||||
|
annotations:
|
||||||
|
description: Radarr5 service is down.
|
||||||
|
summary: Radarr5 is down.
|
||||||
|
expr: |
|
||||||
|
radarr5_system_status{job=~".*radarr5.*"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: radarr5
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: radarr5
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: radarr5
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /metrics
|
@@ -1,35 +1,114 @@
|
|||||||
radarr:
|
radarr5:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/radarr
|
main:
|
||||||
tag: 5.7.0.8882
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
RADARR__POSTGRES_MAIN_DB: radarr-main
|
revisionHistoryLimit: 3
|
||||||
RADARR__POSTGRES_LOG_DB: radarr-log
|
pod:
|
||||||
RADARR__POSTGRES_HOST:
|
securityContext:
|
||||||
valueFrom:
|
runAsUser: 568
|
||||||
secretKeyRef:
|
runAsGroup: 568
|
||||||
name: radarr5-postgresql-16-cluster-app
|
fsGroup: 568
|
||||||
key: host
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
RADARR__POSTGRES_PORT:
|
supplementalGroups:
|
||||||
valueFrom:
|
- 44
|
||||||
secretKeyRef:
|
- 100
|
||||||
name: radarr5-postgresql-16-cluster-app
|
- 109
|
||||||
key: port
|
- 65539
|
||||||
RADARR__POSTGRES_USER:
|
containers:
|
||||||
valueFrom:
|
main:
|
||||||
secretKeyRef:
|
image:
|
||||||
name: radarr5-postgresql-16-cluster-app
|
repository: ghcr.io/onedr0p/radarr
|
||||||
key: user
|
tag: 5.7.0.8882
|
||||||
RADARR__POSTGRES_PASSWORD:
|
pullPolicy: IfNotPresent
|
||||||
valueFrom:
|
env:
|
||||||
secretKeyRef:
|
- name: TZ
|
||||||
name: radarr5-postgresql-16-cluster-app
|
value: US/Central
|
||||||
key: password
|
- name: RADARR__POSTGRES_MAIN_DB
|
||||||
|
value: radarr-main
|
||||||
|
- name: RADARR__POSTGRES_LOG_DB
|
||||||
|
value: radarr-log
|
||||||
|
- name: RADARR__POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-postgresql-16-cluster-app
|
||||||
|
key: host
|
||||||
|
- name: RADARR__POSTGRES_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-postgresql-16-cluster-app
|
||||||
|
key: port
|
||||||
|
- name: RADARR__POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-postgresql-16-cluster-app
|
||||||
|
key: username
|
||||||
|
- name: RADARR__POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: radarr5-postgresql-16-cluster-app
|
||||||
|
key: password
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:7878/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
metrics:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/exportarr
|
||||||
|
tag: v2.0.1
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args: ["radarr"]
|
||||||
|
env:
|
||||||
|
- name: URL
|
||||||
|
value: http://localhost
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config/config.xml
|
||||||
|
- name: PORT
|
||||||
|
value: 9793
|
||||||
|
- name: ENABLE_ADDITIONAL_METRICS
|
||||||
|
value: false
|
||||||
|
- name: ENABLE_UNKNOWN_QUEUE_ITEMS
|
||||||
|
value: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 7878
|
||||||
|
protocol: HTTP
|
||||||
|
metrics:
|
||||||
|
port: 9793
|
||||||
|
targetPort: 9793
|
||||||
|
protocol: TCP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -39,53 +118,34 @@ radarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: radarr5
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: radarr5-secret-tls
|
- secretName: radarr5-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- radarr.alexlebens.net
|
- radarr.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
storageClass: ceph-block
|
||||||
mountPath: /config
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
metrics:
|
||||||
|
- path: /config
|
||||||
|
readOnly: true
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
mountPath: /mnt/store
|
|
||||||
type: pvc
|
|
||||||
existingClaim: radarr5-nfs-storage
|
existingClaim: radarr5-nfs-storage
|
||||||
podSecurityContext:
|
advancedMounts:
|
||||||
runAsUser: 1000
|
main:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
- path: /mnt/store
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
readOnly: false
|
||||||
supplementalGroups:
|
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
prometheusRule:
|
|
||||||
enabled: true
|
|
||||||
rules:
|
|
||||||
- alert: RadarrDown
|
|
||||||
annotations:
|
|
||||||
description: Radarr service is down.
|
|
||||||
summary: Radarr is down.
|
|
||||||
expr: |
|
|
||||||
radarr_system_status == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
exporter:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/exportarr
|
|
||||||
tag: v2.0.1
|
|
||||||
persistence:
|
|
||||||
media:
|
|
||||||
nfsPath: /volume2/Storage
|
|
||||||
nfsServer: synologybond.alexlebens.net
|
|
||||||
postgres-16-cluster:
|
postgres-16-cluster:
|
||||||
mode: standalone
|
mode: standalone
|
||||||
cluster:
|
cluster:
|
||||||
|
@@ -13,14 +13,15 @@ sources:
|
|||||||
- https://github.com/cloudnative-pg/cloudnative-pg
|
- https://github.com/cloudnative-pg/cloudnative-pg
|
||||||
- https://github.com/onedr0p/containers/pkgs/container/readarr-develop
|
- https://github.com/onedr0p/containers/pkgs/container/readarr-develop
|
||||||
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/readarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: readarr
|
- name: app-template
|
||||||
version: 7.1.2
|
alias: readarr-books
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
- name: postgres-cluster
|
- name: postgres-cluster
|
||||||
alias: postgres-16-cluster
|
alias: postgres-16-cluster
|
||||||
version: 3.5.0
|
version: 3.5.0
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: readarr-boooks-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: readarr-boooks-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
volumeName: "{{ .Release.Name }}-nfs-storage"
|
volumeName: readarr-boooks-nfs-storage
|
||||||
storageClassName: nfs-client
|
storageClassName: nfs-client
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: readarr-boooks-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: readarr-boooks-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
@@ -17,8 +17,8 @@ spec:
|
|||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: {{ .Values.persistence.media.nfsPath }}
|
path: /volume2/Storage
|
||||||
server: {{ .Values.persistence.media.nfsServer }}
|
server: synologybond.alexlebens.net
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- vers=4
|
||||||
- minorversion=1
|
- minorversion=1
|
||||||
|
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: readarr-books
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: readarr-books
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: readarr-books
|
||||||
|
rules:
|
||||||
|
- alert: ExportarrAbsent
|
||||||
|
annotations:
|
||||||
|
description: Readarr Books Exportarr has disappeared from Prometheus
|
||||||
|
service discovery.
|
||||||
|
summary: Exportarr is down.
|
||||||
|
expr: |
|
||||||
|
absent(up{job=~".*readarr_books.*"} == 1)
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
- alert: ReadarrBooksDown
|
||||||
|
annotations:
|
||||||
|
description: Readarr Books service is down.
|
||||||
|
summary: Readarr Books is down.
|
||||||
|
expr: |
|
||||||
|
readarr_books_system_status{job=~".*readarr_books.*"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: readarr-books
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: readarr-books
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: readarr-books
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /metrics
|
@@ -1,36 +1,116 @@
|
|||||||
readarr:
|
readarr-books:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/readarr-develop
|
main:
|
||||||
tag: 0.3.28.2554
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
READARR__POSTGRES_MAIN_DB: readarr-main
|
revisionHistoryLimit: 3
|
||||||
READARR__POSTGRES_LOG_DB: readarr-log
|
pod:
|
||||||
READARR__POSTGRES_CACHE_DB: readarr-cache
|
securityContext:
|
||||||
READARR__POSTGRES_HOST:
|
runAsUser: 568
|
||||||
valueFrom:
|
runAsGroup: 568
|
||||||
secretKeyRef:
|
fsGroup: 568
|
||||||
name: readarr-books-postgresql-16-cluster-app
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
key: host
|
supplementalGroups:
|
||||||
READARR__POSTGRES_PORT:
|
- 44
|
||||||
valueFrom:
|
- 100
|
||||||
secretKeyRef:
|
- 109
|
||||||
name: readarr-books-postgresql-16-cluster-app
|
- 65539
|
||||||
key: port
|
containers:
|
||||||
READARR__POSTGRES_USER:
|
main:
|
||||||
valueFrom:
|
image:
|
||||||
secretKeyRef:
|
repository: ghcr.io/onedr0p/readarr-develop
|
||||||
name: readarr-books-postgresql-16-cluster-app
|
tag: 0.3.28.2554
|
||||||
key: user
|
pullPolicy: IfNotPresent
|
||||||
READARR__POSTGRES_PASSWORD:
|
env:
|
||||||
valueFrom:
|
- name: TZ
|
||||||
secretKeyRef:
|
value: US/Central
|
||||||
name: readarr-books-postgresql-16-cluster-app
|
- name: READARR__POSTGRES_MAIN_DB
|
||||||
key: password
|
value: readarr-main
|
||||||
|
- name: READARR__POSTGRES_LOG_DB
|
||||||
|
value: readarr-log
|
||||||
|
- name: READARR__POSTGRES_CACHE_DB
|
||||||
|
value: readarr-cache
|
||||||
|
- name: READARR__POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: readarr-books-postgresql-16-cluster-app
|
||||||
|
key: host
|
||||||
|
- name: READARR__POSTGRES_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: readarr-books-postgresql-16-cluster-app
|
||||||
|
key: port
|
||||||
|
- name: READARR__POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: readarr-books-postgresql-16-cluster-app
|
||||||
|
key: username
|
||||||
|
- name: READARR__POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: readarr-books-postgresql-16-cluster-app
|
||||||
|
key: password
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:8787/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
metrics:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/exportarr
|
||||||
|
tag: v2.0.1
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args: ["readarr"]
|
||||||
|
env:
|
||||||
|
- name: URL
|
||||||
|
value: http://localhost
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config/config.xml
|
||||||
|
- name: PORT
|
||||||
|
value: 9796
|
||||||
|
- name: ENABLE_ADDITIONAL_METRICS
|
||||||
|
value: false
|
||||||
|
- name: ENABLE_UNKNOWN_QUEUE_ITEMS
|
||||||
|
value: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 8787
|
||||||
|
protocol: HTTP
|
||||||
|
metrics:
|
||||||
|
port: 9795
|
||||||
|
targetPort: 9795
|
||||||
|
protocol: TCP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -40,53 +120,34 @@ readarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: readarr-books
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: readarr-books-secret-tls
|
- secretName: readarr-books-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- readarr-books.alexlebens.net
|
- readarr-books.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
storageClass: ceph-block
|
||||||
mountPath: /config
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
metrics:
|
||||||
|
- path: /config
|
||||||
|
readOnly: true
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
mountPath: /mnt/store
|
|
||||||
type: pvc
|
|
||||||
existingClaim: readarr-books-nfs-storage
|
existingClaim: readarr-books-nfs-storage
|
||||||
podSecurityContext:
|
advancedMounts:
|
||||||
runAsUser: 1000
|
main:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
- path: /mnt/store
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
readOnly: false
|
||||||
supplementalGroups:
|
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
prometheusRule:
|
|
||||||
enabled: true
|
|
||||||
rules:
|
|
||||||
- alert: ReadarrBooksDown
|
|
||||||
annotations:
|
|
||||||
description: Readarr Books service is down.
|
|
||||||
summary: Readarr Books is down.
|
|
||||||
expr: |
|
|
||||||
readarr_books_system_status == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
exporter:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/exportarr
|
|
||||||
tag: v2.0.1
|
|
||||||
persistence:
|
|
||||||
media:
|
|
||||||
nfsPath: /volume2/Storage
|
|
||||||
nfsServer: synologybond.alexlebens.net
|
|
||||||
postgres-16-cluster:
|
postgres-16-cluster:
|
||||||
mode: standalone
|
mode: standalone
|
||||||
cluster:
|
cluster:
|
||||||
|
@@ -13,16 +13,17 @@ home: ""
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Sonarr/Sonarr
|
- https://github.com/Sonarr/Sonarr
|
||||||
- https://github.com/cloudnative-pg/cloudnative-pg
|
- https://github.com/cloudnative-pg/cloudnative-pg
|
||||||
- ttps://github.com/onedr0p/containers/pkgs/container/sonarr
|
- https://github.com/onedr0p/containers/pkgs/container/sonarr
|
||||||
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/sonarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: sonarr
|
- name: app-template
|
||||||
version: 17.1.1
|
alias: sonarr4-4k
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
- name: postgres-cluster
|
- name: postgres-cluster
|
||||||
alias: postgres-16-cluster
|
alias: postgres-16-cluster
|
||||||
version: 3.5.0
|
version: 3.5.0
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: sonarr4-4k-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: sonarr4-4k-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
volumeName: "{{ .Release.Name }}-nfs-storage"
|
volumeName: sonarr4-4k-nfs-storage
|
||||||
storageClassName: nfs-client
|
storageClassName: nfs-client
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: sonarr4-4k-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: sonarr4-4k-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
@@ -17,8 +17,8 @@ spec:
|
|||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: {{ .Values.persistence.media.nfsPath }}
|
path: /volume2/Storage
|
||||||
server: {{ .Values.persistence.media.nfsServer }}
|
server: synologybond.alexlebens.net
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- vers=4
|
||||||
- minorversion=1
|
- minorversion=1
|
||||||
|
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: sonarr4-4k
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: sonarr4-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: sonarr4-4k
|
||||||
|
rules:
|
||||||
|
- alert: ExportarrAbsent
|
||||||
|
annotations:
|
||||||
|
description: Sonarr4 4K Exportarr has disappeared from Prometheus
|
||||||
|
service discovery.
|
||||||
|
summary: Exportarr is down.
|
||||||
|
expr: |
|
||||||
|
absent(up{job=~".*sonarr4_4k.*"} == 1)
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
- alert: Sonarr44KDown
|
||||||
|
annotations:
|
||||||
|
description: Sonarr4 4K service is down.
|
||||||
|
summary: Sonarr4 4K is down.
|
||||||
|
expr: |
|
||||||
|
sonarr4_4k_system_status{job=~".*sonarr4_4k.*"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: sonarr4-4k
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: sonarr4-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: sonarr4-4k
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /metrics
|
@@ -1,35 +1,114 @@
|
|||||||
sonarr:
|
sonarr4:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/sonarr
|
main:
|
||||||
tag: 4.0.5.1710
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
SONARR__POSTGRES_MAIN_DB: sonarr-main
|
revisionHistoryLimit: 3
|
||||||
SONARR__POSTGRES_LOG_DB: sonarr-log
|
pod:
|
||||||
SONARR__POSTGRES_HOST:
|
securityContext:
|
||||||
valueFrom:
|
runAsUser: 568
|
||||||
secretKeyRef:
|
runAsGroup: 568
|
||||||
name: sonarr4-4k-postgresql-16-cluster-app
|
fsGroup: 568
|
||||||
key: host
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
SONARR__POSTGRES_PORT:
|
supplementalGroups:
|
||||||
valueFrom:
|
- 44
|
||||||
secretKeyRef:
|
- 100
|
||||||
name: sonarr4-4k-postgresql-16-cluster-app
|
- 109
|
||||||
key: port
|
- 65539
|
||||||
SONARR__POSTGRES_USER:
|
containers:
|
||||||
valueFrom:
|
main:
|
||||||
secretKeyRef:
|
image:
|
||||||
name: sonarr4-4k-postgresql-16-cluster-app
|
repository: ghcr.io/onedr0p/sonarr
|
||||||
key: user
|
tag: 4.0.5.1710
|
||||||
SONARR__POSTGRES_PASSWORD:
|
pullPolicy: IfNotPresent
|
||||||
valueFrom:
|
env:
|
||||||
secretKeyRef:
|
- name: TZ
|
||||||
name: sonarr4-4k-postgresql-16-cluster-app
|
value: US/Central
|
||||||
key: password
|
- name: SONARR__POSTGRES_MAIN_DB
|
||||||
|
value: sonarr-main
|
||||||
|
- name: SONARR__POSTGRES_MAIN_DB
|
||||||
|
value: sonarr-log
|
||||||
|
- name: SONARR__POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-4k-postgresql-16-cluster-app
|
||||||
|
key: host
|
||||||
|
- name: SONARR__POSTGRES_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-4k-postgresql-16-cluster-app
|
||||||
|
key: port
|
||||||
|
- name: SONARR__POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-4k-postgresql-16-cluster-app
|
||||||
|
key: username
|
||||||
|
- name: SONARR__POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-4k-postgresql-16-cluster-app
|
||||||
|
key: password
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:8989/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
metrics:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/exportarr
|
||||||
|
tag: v2.0.1
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args: ["sonarr"]
|
||||||
|
env:
|
||||||
|
- name: URL
|
||||||
|
value: http://localhost
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config/config.xml
|
||||||
|
- name: PORT
|
||||||
|
value: 9794
|
||||||
|
- name: ENABLE_ADDITIONAL_METRICS
|
||||||
|
value: false
|
||||||
|
- name: ENABLE_UNKNOWN_QUEUE_ITEMS
|
||||||
|
value: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 8989
|
||||||
|
protocol: HTTP
|
||||||
|
metrics:
|
||||||
|
port: 9794
|
||||||
|
targetPort: 9794
|
||||||
|
protocol: TCP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -39,53 +118,34 @@ sonarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: sonarr4-4k
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: sonarr4-4k-secret-tls
|
- secretName: sonarr4-4k-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- sonarr-4k.alexlebens.net
|
- sonarr-4k.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
storageClass: ceph-block
|
||||||
mountPath: /config
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
metrics:
|
||||||
|
- path: /config
|
||||||
|
readOnly: true
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
mountPath: /mnt/store
|
|
||||||
type: pvc
|
|
||||||
existingClaim: sonarr4-4k-nfs-storage
|
existingClaim: sonarr4-4k-nfs-storage
|
||||||
podSecurityContext:
|
advancedMounts:
|
||||||
runAsUser: 1000
|
main:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
- path: /mnt/store
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
readOnly: false
|
||||||
supplementalGroups:
|
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
prometheusRule:
|
|
||||||
enabled: true
|
|
||||||
rules:
|
|
||||||
- alert: SonarrDown
|
|
||||||
annotations:
|
|
||||||
description: Sonarr 4k service is down.
|
|
||||||
summary: Sonarr 4k is down.
|
|
||||||
expr: |
|
|
||||||
sonarr_system_status == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
exporter:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/exportarr
|
|
||||||
tag: v2.0.1
|
|
||||||
persistence:
|
|
||||||
media:
|
|
||||||
nfsPath: /volume2/Storage
|
|
||||||
nfsServer: synologybond.alexlebens.net
|
|
||||||
postgres-16-cluster:
|
postgres-16-cluster:
|
||||||
mode: standalone
|
mode: standalone
|
||||||
cluster:
|
cluster:
|
||||||
|
@@ -12,16 +12,17 @@ home: ""
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Sonarr/Sonarr
|
- https://github.com/Sonarr/Sonarr
|
||||||
- https://github.com/cloudnative-pg/cloudnative-pg
|
- https://github.com/cloudnative-pg/cloudnative-pg
|
||||||
- ttps://github.com/onedr0p/containers/pkgs/container/sonarr
|
- https://github.com/onedr0p/containers/pkgs/container/sonarr
|
||||||
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
- https://github.com/onedr0p/exportarr/pkgs/container/exportarr
|
||||||
- https://github.com/k8s-home-lab/helm-charts/tree/master/charts/stable/sonarr
|
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
|
||||||
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
- https://github.com/alexlebens/helm-charts/charts/postgres-cluster
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: sonarr
|
- name: app-template
|
||||||
version: 17.1.1
|
alias: sonarr4
|
||||||
repository: https://k8s-home-lab.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
|
version: 3.2.1
|
||||||
- name: postgres-cluster
|
- name: postgres-cluster
|
||||||
alias: postgres-16-cluster
|
alias: postgres-16-cluster
|
||||||
version: 3.5.0
|
version: 3.5.0
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: sonarr4-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: sonarr4-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
volumeName: "{{ .Release.Name }}-nfs-storage"
|
volumeName: sonarr4-nfs-storage
|
||||||
storageClassName: nfs-client
|
storageClassName: nfs-client
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-nfs-storage"
|
name: sonarr4-nfs-storage
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
app.kubernetes.io/name: sonarr4-nfs-storage
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/component: storage
|
app.kubernetes.io/component: storage
|
||||||
@@ -17,8 +17,8 @@ spec:
|
|||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: {{ .Values.persistence.media.nfsPath }}
|
path: /volume2/Storage
|
||||||
server: {{ .Values.persistence.media.nfsServer }}
|
server: synologybond.alexlebens.net
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- vers=4
|
- vers=4
|
||||||
- minorversion=1
|
- minorversion=1
|
||||||
|
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: sonarr4
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: sonarr4
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: sonarr4
|
||||||
|
rules:
|
||||||
|
- alert: ExportarrAbsent
|
||||||
|
annotations:
|
||||||
|
description: Sonarr4 Exportarr has disappeared from Prometheus
|
||||||
|
service discovery.
|
||||||
|
summary: Exportarr is down.
|
||||||
|
expr: |
|
||||||
|
absent(up{job=~".*sonarr4.*"} == 1)
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
- alert: Sonarr4Down
|
||||||
|
annotations:
|
||||||
|
description: Sonarr4 service is down.
|
||||||
|
summary: Sonarr4 is down.
|
||||||
|
expr: |
|
||||||
|
sonarr4_system_status{job=~".*sonarr4.*"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: sonarr4
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: sonarr4
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/component: metrics
|
||||||
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: sonarr4
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /metrics
|
@@ -1,35 +1,114 @@
|
|||||||
sonarr:
|
sonarr4:
|
||||||
image:
|
controllers:
|
||||||
repository: ghcr.io/onedr0p/sonarr
|
main:
|
||||||
tag: 4.0.5.1710
|
type: deployment
|
||||||
env:
|
replicas: 1
|
||||||
TZ: US/Central
|
strategy: Recreate
|
||||||
SONARR__POSTGRES_MAIN_DB: sonarr-main
|
revisionHistoryLimit: 3
|
||||||
SONARR__POSTGRES_LOG_DB: sonarr-log
|
pod:
|
||||||
SONARR__POSTGRES_HOST:
|
securityContext:
|
||||||
valueFrom:
|
runAsUser: 568
|
||||||
secretKeyRef:
|
runAsGroup: 568
|
||||||
name: sonarr4-postgresql-16-cluster-app
|
fsGroup: 568
|
||||||
key: host
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
SONARR__POSTGRES_PORT:
|
supplementalGroups:
|
||||||
valueFrom:
|
- 44
|
||||||
secretKeyRef:
|
- 100
|
||||||
name: sonarr4-postgresql-16-cluster-app
|
- 109
|
||||||
key: port
|
- 65539
|
||||||
SONARR__POSTGRES_USER:
|
containers:
|
||||||
valueFrom:
|
main:
|
||||||
secretKeyRef:
|
image:
|
||||||
name: sonarr4-postgresql-16-cluster-app
|
repository: ghcr.io/onedr0p/sonarr
|
||||||
key: user
|
tag: 4.0.5.1710
|
||||||
SONARR__POSTGRES_PASSWORD:
|
pullPolicy: IfNotPresent
|
||||||
valueFrom:
|
env:
|
||||||
secretKeyRef:
|
- name: TZ
|
||||||
name: sonarr4-postgresql-16-cluster-app
|
value: US/Central
|
||||||
key: password
|
- name: SONARR__POSTGRES_MAIN_DB
|
||||||
|
value: sonarr-main
|
||||||
|
- name: SONARR__POSTGRES_MAIN_DB
|
||||||
|
value: sonarr-log
|
||||||
|
- name: SONARR__POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-postgresql-16-cluster-app
|
||||||
|
key: host
|
||||||
|
- name: SONARR__POSTGRES_PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-postgresql-16-cluster-app
|
||||||
|
key: port
|
||||||
|
- name: SONARR__POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-postgresql-16-cluster-app
|
||||||
|
key: username
|
||||||
|
- name: SONARR__POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sonarr4-postgresql-16-cluster-app
|
||||||
|
key: password
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /usr/bin/env
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- curl --fail localhost:8989/api/v1/system/status?apiKey=`IFS=\> && while
|
||||||
|
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done < /config/config.xml`
|
||||||
|
failureThreshold: 5
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
metrics:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/onedr0p/exportarr
|
||||||
|
tag: v2.0.1
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args: ["sonarr"]
|
||||||
|
env:
|
||||||
|
- name: URL
|
||||||
|
value: http://localhost
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config/config.xml
|
||||||
|
- name: PORT
|
||||||
|
value: 9794
|
||||||
|
- name: ENABLE_ADDITIONAL_METRICS
|
||||||
|
value: false
|
||||||
|
- name: ENABLE_UNKNOWN_QUEUE_ITEMS
|
||||||
|
value: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
targetPort: 8989
|
||||||
|
protocol: HTTP
|
||||||
|
metrics:
|
||||||
|
port: 9794
|
||||||
|
targetPort: 9794
|
||||||
|
protocol: TCP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: traefik
|
className: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
@@ -39,53 +118,34 @@ sonarr:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: sonarr4
|
||||||
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
- secretName: sonarr4-secret-tls
|
- secretName: sonarr4-secret-tls
|
||||||
hosts:
|
hosts:
|
||||||
- sonarr.alexlebens.net
|
- sonarr.alexlebens.net
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
storageClass: ceph-block
|
||||||
mountPath: /config
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /config
|
||||||
|
readOnly: false
|
||||||
|
metrics:
|
||||||
|
- path: /config
|
||||||
|
readOnly: true
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
mountPath: /mnt/store
|
|
||||||
type: pvc
|
|
||||||
existingClaim: sonarr4-nfs-storage
|
existingClaim: sonarr4-nfs-storage
|
||||||
podSecurityContext:
|
advancedMounts:
|
||||||
runAsUser: 1000
|
main:
|
||||||
runAsGroup: 1000
|
main:
|
||||||
fsGroup: 2000
|
- path: /mnt/store
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
readOnly: false
|
||||||
supplementalGroups:
|
|
||||||
- 44
|
|
||||||
- 100
|
|
||||||
- 109
|
|
||||||
- 65539
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
prometheusRule:
|
|
||||||
enabled: true
|
|
||||||
rules:
|
|
||||||
- alert: SonarrDown
|
|
||||||
annotations:
|
|
||||||
description: Sonarr service is down.
|
|
||||||
summary: Sonarr is down.
|
|
||||||
expr: |
|
|
||||||
sonarr_system_status == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
exporter:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/exportarr
|
|
||||||
tag: v2.0.1
|
|
||||||
persistence:
|
|
||||||
media:
|
|
||||||
nfsPath: /volume2/Storage
|
|
||||||
nfsServer: synologybond.alexlebens.net
|
|
||||||
postgres-16-cluster:
|
postgres-16-cluster:
|
||||||
mode: standalone
|
mode: standalone
|
||||||
cluster:
|
cluster:
|
||||||
|
Reference in New Issue
Block a user