127 lines
No EOL
2.8 KiB
YAML
127 lines
No EOL
2.8 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app sabnzbd
|
|
namespace: arr
|
|
spec:
|
|
interval: 15m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.7.1
|
|
interval: 30m
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
remediation:
|
|
retries: 3
|
|
|
|
values:
|
|
global:
|
|
fullnameOverride: *app
|
|
namespace: arr
|
|
|
|
controllers:
|
|
sabnzbd:
|
|
enabled: true
|
|
type: statefulset
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
|
|
replicas: 1
|
|
|
|
statefulset:
|
|
volumeClaimTemplates:
|
|
- name: sabnzbd-config
|
|
accessMode: ReadWriteOnce
|
|
size: 500Mi
|
|
storageClass: longhorn
|
|
globalMounts:
|
|
- path: /config
|
|
|
|
pod:
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: &group 1000
|
|
fsGroup: *group
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/onedr0p/sabnzbd
|
|
tag: 4.4.1
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
TZ: "${TZ}"
|
|
SABNZBD__PORT: &port 8080
|
|
SABNZBD__HOST_WHITELIST_ENTRIES: >-
|
|
{{ .Release.Name }},
|
|
{{ .Release.Name }}.arr,
|
|
{{ .Release.Name }}.arr.svc,
|
|
{{ .Release.Name }}.arr.svc.cluster.local,
|
|
sab.${LOCAL_DOMAIN}
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: false
|
|
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 200Mi
|
|
limits:
|
|
memory: 4000Mi
|
|
|
|
service:
|
|
app:
|
|
primary: true
|
|
controller: sabnzbd
|
|
ports:
|
|
http:
|
|
port: *port
|
|
|
|
ingress:
|
|
internal:
|
|
enabled: true
|
|
className: nginx
|
|
hosts:
|
|
- host: "sab.${LOCAL_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- "sab.${LOCAL_DOMAIN}"
|
|
secretName: local-mafyuh-dev-production-tls
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${NAS_IP}"
|
|
path: /mnt/thePool/thePoolShare
|
|
globalMounts:
|
|
- path: /data
|
|
|
|
incomplete:
|
|
enabled: true
|
|
type: emptyDir
|
|
sizeLimit: 100Gi
|
|
globalMounts:
|
|
- path: /incomplete |