feat(sonarr): Deploying Sonarr with Helm chart

This commit is contained in:
Vegard Hagen
2023-04-10 14:35:10 +02:00
parent fd605aa01a
commit 34796f4b1d
5 changed files with 35 additions and 59 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ resources:
- traefik-forward-auth
- torrent
- prowlarr.yaml
- sonarr
- sonarr.yaml
- radarr
- lidarr.yaml
+34
View File
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: sonarr
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
repoURL: https://github.com/vehagn/homelab
path: helm/application
helm:
values: |-
name: sonarr
image:
name: lscr.io/linuxserver/sonarr
hostVolumes:
- name: sonarr-config
hostPath: /disk/etc/sonarr
mountPath: /config
service:
containerPort: 8989
valueFiles:
- ../../apps/arr/common-values.yaml
destination:
namespace: arr
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
-37
View File
@@ -1,37 +0,0 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: sonarr
spec:
replicas: 1
selector:
matchLabels:
app: sonarr
template:
spec:
volumes:
- name: sonarr-config
hostPath:
path: "/disk/etc/sonarr"
- name: media-data
hostPath:
path: "/disk/data"
containers:
- name: sonarr
image: lscr.io/linuxserver/sonarr
imagePullPolicy: Always
volumeMounts:
- mountPath: "/config"
name: sonarr-config
- mountPath: "/app/data"
name: media-data
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Oslo
ports:
- name: web
containerPort: 8989
-10
View File
@@ -1,10 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: sonarr
resources:
- service.yaml
- deployment.yaml
-11
View File
@@ -1,11 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: sonarr
spec:
type: ClusterIP
ports:
- name: web
port: 8989
selector:
app: sonarr