Add sonarr

This commit is contained in:
SeanOMik 2023-04-03 01:02:32 -04:00
parent 677445fdaa
commit 86d24f7799
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
6 changed files with 106 additions and 29 deletions

View File

@ -1,4 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []
#- ./media
resources:
- ./media

View File

@ -1,31 +1,39 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: aste88-charts
namespace: flux-system
spec:
interval: 1m
url: https://aste88.github.io/helm-charts/
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sonarr
namespace: media
labels:
app: sonarr
kubernetes.io/name: "sonarr"
spec:
interval: 5m
chart:
replicas: 1
template:
metadata:
labels:
app: sonarr
spec:
chart: sonarr
version: '17.x.x'
sourceRef:
kind: HelmRepository
name: aste88-charts
namespace: flux-system
interval: 1m
values:
env:
TZ: America/New_York
ingress:
# metrics.enabled: true
containers:
- name: sonarr
image: linuxserver/sonarr
imagePullPolicy: Always
ports:
- containerPort: 8989
env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
volumeMounts:
- name: sonarr
mountPath: /config
- name: sonarr-media-storage
mountPath: /storage
volumes:
- name: sonarr
hostPath:
path: /mnt/MainPool/Kubernetes/sonarr
- name: sonarr-media-storage
hostPath:
path: /mnt/MainPool/Media

View File

@ -0,0 +1,32 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: aste88-charts
namespace: flux-system
spec:
interval: 1m
url: https://aste88.github.io/helm-charts/
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: sonarr
namespace: media
spec:
interval: 5m
chart:
spec:
chart: sonarr
version: '17.x.x'
sourceRef:
kind: HelmRepository
name: aste88-charts
namespace: flux-system
interval: 1m
values:
env:
TZ: America/New_York
metrics:
enabled: false
# metrics.enabled: true

View File

@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sonarr-ingress
namespace: media
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
rules:
- host: "k3sson.***REMOVED***"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: sonarr
port:
number: 8989

View File

@ -1,4 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./sonarr.yaml
- ./deployment.yaml
- ./ingress.yaml
- ./service.yaml

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: sonarr
namespace: media
labels:
app: sonarr
kubernetes.io/name: "sonarr"
spec:
selector:
app: sonarr
ports:
- name: sonarr
port: 80
targetPort: 8989