add sonarr

This commit is contained in:
auricom
2020-11-23 21:21:54 +01:00
parent f2b04bd3cc
commit 0a46d72469
2 changed files with 112 additions and 0 deletions

76
cluster/media/sonarr.yaml Normal file
View File

@@ -0,0 +1,76 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: sonarr
namespace: media
spec:
interval: 5m
chart:
spec:
chart: sonarr
version: 7.4.0
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
controllerType: deployment
image:
repository: k8sathome/sonarr
tag: v3.0.4.1021
pullPolicy: IfNotPresent
env:
TZ: "Europe/Paris"
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
persistence:
config:
enabled: true
existingClaim: sonarr-config
additionalVolumeMounts:
- name: nfs-video
mountPath: "/mnt/storage/video"
- name: qbittorrent-downloads
mountPath: "/downloads"
additionalVolumes:
- name: nfs-video
persistentVolumeClaim:
claimName: nfs-video
- name: qbittorrent-downloads
persistentVolumeClaim:
claimName: qbittorrent-downloads
resources:
requests:
memory: 500Mi
cpu: 500m
limits:
memory: 1500Mi
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k3os-worker3
valuesFrom:
- kind: ConfigMap
name: helmrelease-media-sonarr
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonarr-config
namespace: media
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-backups
resources:
requests:
storage: 5Gi