feat(lidarr): Deploying Lidarr using Helm Chart

This commit is contained in:
Vegard Hagen
2023-04-10 10:05:33 +02:00
parent ea712feb77
commit f906558832
12 changed files with 91 additions and 11 deletions
+7 -7
View File
@@ -41,12 +41,12 @@ spec:
port: 7878
middlewares:
- name: traefik-forward-auth
- match: Host(`lidarr.stonegarden.dev`)
kind: Rule
services:
- name: lidarr
port: 8686
middlewares:
- name: traefik-forward-auth
# - match: Host(`lidarr.stonegarden.dev`)
# kind: Rule
# services:
# - name: lidarr
# port: 8686
# middlewares:
# - name: traefik-forward-auth
tls:
certResolver: letsencrypt
+1 -2
View File
@@ -1,6 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
resources:
- ingress.yaml
@@ -9,4 +8,4 @@ resources:
- prowlarr
- sonarr
- radarr
- lidarr
- lidarr.yaml
+47
View File
@@ -0,0 +1,47 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: lidarr
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
path: helm/application
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
helm:
values: |
name: lidarr
namespace: arr
image:
name: lscr.io/linuxserver/lidarr
hostVolumes:
- name: lidarr-config
hostPath: /disk/etc/lidarr
mountPath: /config
- name: media-data
hostPath: /disk/data
mountPath: /app/data
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Oslo
service:
containerPort: 8686
auth:
enabled: true
create: false
destination:
namespace: arr
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
+2
View File
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: lidarr
+2
View File
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: prowlarr
+2
View File
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: radarr
+2
View File
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: sonarr
+2
View File
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: qbittorrent
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: arr
commonLabels:
app: traefik-forward-auth
@@ -14,13 +14,26 @@ spec:
labels:
app: {{ .Values.name }}
spec:
volumes:
{{- range .Values.hostVolumes }}
- name: {{ .name }}
hostPath:
path: {{ .hostPath }}
{{- end }}
containers:
- name: {{ .Values.name }}
image: {{ .Values.image.name }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
{{- range .Values.hostVolumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
env:
{{- toYaml .Values.env | nindent 12 }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
containerPort: {{ .Values.service.containerPort }}
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
+8 -1
View File
@@ -20,7 +20,14 @@ service:
ingressRoute:
create: true
resources: { }
env: []
hostVolumes: []
# - name: volume-name
# hostPath: /host/path
# mountPath: /container/path
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
+2
View File
@@ -9,6 +9,8 @@ spec:
sourceRepos:
- 'https://github.com/vehagn/*'
destinations:
- namespace: 'argocd'
server: '*'
- namespace: 'arr'
server: '*'
- namespace: 'home-assistant'