Add sonarr
This commit is contained in:
parent
677445fdaa
commit
86d24f7799
|
@ -1,4 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
#- ./media
|
||||
resources:
|
||||
- ./media
|
|
@ -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
|
||||
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
|
||||
ingress:
|
||||
|
||||
# metrics.enabled: true
|
||||
labels:
|
||||
app: sonarr
|
||||
kubernetes.io/name: "sonarr"
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: sonarr
|
||||
spec:
|
||||
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
|
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./sonarr.yaml
|
||||
- ./deployment.yaml
|
||||
- ./ingress.yaml
|
||||
- ./service.yaml
|
|
@ -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
|
Loading…
Reference in New Issue