mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-01 07:55:06 +02:00
133 lines
3.8 KiB
YAML
133 lines
3.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app sabnzbd
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.5.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
dependsOn:
|
|
- name: rook-ceph-cluster
|
|
namespace: rook-ceph
|
|
- name: volsync
|
|
namespace: volsync
|
|
values:
|
|
defaultPodOptions:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
controllers:
|
|
main:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/onedr0p/sabnzbd
|
|
tag: 4.2.2@sha256:5b1f15c8d25afa2342505492486361d4ecf14449e1453aeea45cd7c1e5eeb63a
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
SABNZBD__PORT: &port 8080
|
|
SABNZBD__HOST_WHITELIST_ENTRIES: >-
|
|
sabnzbd,
|
|
sabnzbd.default,
|
|
sabnzbd.default.svc,
|
|
sabnzbd.default.svc.cluster,
|
|
sabnzbd.default.svc.cluster.local,
|
|
sabnzbd.${SECRET_CLUSTER_DOMAIN}
|
|
envFrom:
|
|
- secretRef:
|
|
name: sabnzbd-secret
|
|
probes:
|
|
liveness: &probes
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /api?mode=version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness: *probes
|
|
startup:
|
|
enabled: false
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 250Mi
|
|
limits:
|
|
memory: 8000Mi
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: *port
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/auth-method: GET
|
|
nginx.ingress.kubernetes.io/auth-url: http://authelia.default.svc.cluster.local.:8888/api/verify
|
|
nginx.ingress.kubernetes.io/auth-signin: https://auth.${SECRET_CLUSTER_DOMAIN}?rm=$request_method
|
|
nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
|
|
nginx.ingress.kubernetes.io/auth-snippet: proxy_set_header X-Forwarded-Method $request_method;
|
|
hajimari.io/icon: mdi:download
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: main
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /config
|
|
downloads:
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/downloads
|
|
globalMounts:
|
|
- path: /mnt/storage/downloads
|
|
music-usenet:
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/music/.usenet
|
|
globalMounts:
|
|
- path: /mnt/storage/music/.usenet
|
|
video-usenet:
|
|
type: nfs
|
|
server: "192.168.9.10"
|
|
path: /mnt/storage/video/.usenet
|
|
globalMounts:
|
|
- path: /mnt/storage/video/.usenet
|