feat: add sabnzb

This commit is contained in:
auricom
2021-04-26 23:13:40 +02:00
parent be1892d62e
commit d51d9d5884
4 changed files with 100 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ resources:
- pyload
- qbittorrent
- radarr
- sabnzbd
- sonarr
- tdarr
- travelstories

View File

@@ -0,0 +1,79 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: sabnzbd
namespace: media
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: sabnzbd
version: 7.0.1
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: ghcr.io/k8s-at-home/sabnzbd
tag: v3.2.1
env:
TZ: "Europe/Paris"
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/sabnzbd/space-gray.css"></head>';
sub_filter_once on;
forecastle.stakater.com/expose: "true"
forecastle.stakater.com/appName: "SABnzbd"
forecastle.stakater.com/icon: "https://avatars.githubusercontent.com/u/16778130?v=4"
forecastle.stakater.com/network-restricted: "true"
hosts:
- host: "sabnzbd.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "sabnzbd.${SECRET_CLUSTER_DOMAIN}"
additionalIngresses:
- enabled: true
nameSuffix: "api"
annotations:
kubernetes.io/ingress.class: "nginx"
hosts:
- host: "sabnzbd.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /api
pathType: Prefix
tls:
- hosts:
- "sabnzbd.${SECRET_CLUSTER_DOMAIN}"
persistence:
config:
enabled: true
existingClaim: sabnzbd-config
podSecurityContext:
supplementalGroups:
- 100
additionalVolumeMounts:
- name: nfs-video-media
mountPath: /mnt/storage/video
additionalVolumes:
- name: nfs-video-media
persistentVolumeClaim:
claimName: nfs-video-media
resources:
requests:
memory: 250Mi
cpu: 500m
limits:
memory: 7500Mi

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volume.yaml

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sabnzbd-config
namespace: media
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 1Gi