mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-01 16:05:55 +02:00
new gitops template
This commit is contained in:
74
cluster/apps/media/sonarr/helm-release.yaml
Normal file
74
cluster/apps/media/sonarr/helm-release.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: sonarr
|
||||
namespace: media
|
||||
spec:
|
||||
interval: 5m
|
||||
chart:
|
||||
spec:
|
||||
# renovate: registryUrl=https://k8s-at-home.com/charts/
|
||||
chart: sonarr
|
||||
version: 10.2.0
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: k8s-at-home-charts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
values:
|
||||
controllerType: deployment
|
||||
image:
|
||||
repository: ghcr.io/k8s-at-home/sonarr
|
||||
tag: v3.0.6.1196
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
TZ: "Europe/Paris"
|
||||
podSecurityContext:
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
fsGroup: 568
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: sonarr-config
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
|
||||
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/sonarr/space-gray.css"></head>';
|
||||
sub_filter_once on;
|
||||
hosts:
|
||||
- host: sonarr.${SECRET_CLUSTER_DOMAIN}
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- "sonarr.${SECRET_CLUSTER_DOMAIN}"
|
||||
additionalVolumeMounts:
|
||||
- name: nfs-video-media
|
||||
mountPath: "/mnt/storage/video"
|
||||
- name: qbittorrent-cache
|
||||
mountPath: "/downloads"
|
||||
additionalVolumes:
|
||||
- name: nfs-video-media
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs-video-media
|
||||
- name: qbittorrent-cache
|
||||
persistentVolumeClaim:
|
||||
claimName: qbittorrent-cache
|
||||
resources:
|
||||
requests:
|
||||
memory: 500Mi
|
||||
cpu: 500m
|
||||
limits:
|
||||
memory: 1500Mi
|
||||
service:
|
||||
annotations:
|
||||
prometheus.io/probe: "true"
|
||||
prometheus.io/protocol: http
|
5
cluster/apps/media/sonarr/kustomization.yaml
Normal file
5
cluster/apps/media/sonarr/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helm-release.yaml
|
||||
- volume.yaml
|
13
cluster/apps/media/sonarr/volume.yaml
Normal file
13
cluster/apps/media/sonarr/volume.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: sonarr-config
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn-backups
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
Reference in New Issue
Block a user