diff --git a/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml b/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml index 2b1a59bd8..15eeee111 100644 --- a/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml +++ b/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml @@ -10,7 +10,7 @@ spec: chart: spec: chart: app-template - version: 1.5.1 + version: 2.0.3 sourceRef: kind: HelmRepository name: bjw-s @@ -26,26 +26,69 @@ spec: retries: 3 uninstall: keepHistory: false + dependsOn: + - name: rook-ceph-cluster + namespace: rook-ceph + - name: volsync + namespace: volsync values: - controller: - annotations: - reloader.stakater.com/auto: "true" - image: - repository: ghcr.io/onedr0p/sabnzbd - tag: 4.1.0@sha256:91f3cd6b9f1c9988af5447f464b299630706eb7f691dee857eab1487d4bb626e - 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 + defaultPodOptions: + runAsUser: 568 + runAsGroup: 568 + fsGroup: 568 + fsGroupChangePolicy: "OnRootMismatch" + controllers: + main: + type: statefulset + annotations: + reloader.stakater.com/auto: "true" + containers: + main: + image: + repository: ghcr.io/onedr0p/sabnzbd + tag: 4.1.0@sha256:91f3cd6b9f1c9988af5447f464b299630706eb7f691dee857eab1487d4bb626e + 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 + statefulset: + volumeClaimTemplates: + - name: config + accessMode: ReadWriteOnce + size: 1Gi + storageClass: rook-ceph-block + globalMounts: + - path: /config service: main: ports: @@ -54,55 +97,36 @@ spec: ingress: main: enabled: true - ingressClassName: "nginx" + className: "nginx" annotations: auth.home.arpa/enabled: "true" - nginx.ingress.kubernetes.io/configuration-snippet: | - proxy_set_header Accept-Encoding ""; - sub_filter '' ''; - sub_filter_once on; hajimari.io/icon: mdi:download hosts: - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" paths: - path: / - pathType: Prefix + service: + name: main + port: http tls: - hosts: - *host - podSecurityContext: - runAsUser: 568 - runAsGroup: 568 - fsGroup: 568 - fsGroupChangePolicy: "OnRootMismatch" - supplementalGroups: - - 100 persistence: - config: - enabled: true - existingClaim: sabnzbd-config - mountPath: /config downloads: - enabled: true type: nfs server: "${LOCAL_LAN_TRUENAS}" path: /mnt/storage/downloads - mountPath: /mnt/storage/downloads + globalMounts: + - path: /mnt/storage/downloads music-usenet: - enabled: true type: nfs server: "${LOCAL_LAN_TRUENAS}" path: /mnt/storage/music/.usenet - mountPath: /mnt/storage/music/.usenet + globalMounts: + - path: /mnt/storage/music/.usenet video-usenet: - enabled: true type: nfs server: "${LOCAL_LAN_TRUENAS}" path: /mnt/storage/video/.usenet - mountPath: /mnt/storage/video/.usenet - resources: - requests: - cpu: 10m - memory: 250Mi - limits: - memory: 8000Mi + globalMounts: + - path: /mnt/storage/video/.usenet diff --git a/kubernetes/apps/default/sabnzbd/app/kustomization.yaml b/kubernetes/apps/default/sabnzbd/app/kustomization.yaml index 1ac8f8607..c254171ab 100644 --- a/kubernetes/apps/default/sabnzbd/app/kustomization.yaml +++ b/kubernetes/apps/default/sabnzbd/app/kustomization.yaml @@ -8,4 +8,3 @@ resources: - ./gatus.yaml - ./helmrelease.yaml - ./volsync.yaml - - ./volume.yaml diff --git a/kubernetes/apps/default/sabnzbd/app/volsync.yaml b/kubernetes/apps/default/sabnzbd/app/volsync.yaml index 47a96ae52..a2e76592d 100644 --- a/kubernetes/apps/default/sabnzbd/app/volsync.yaml +++ b/kubernetes/apps/default/sabnzbd/app/volsync.yaml @@ -30,7 +30,7 @@ metadata: name: sabnzbd namespace: default spec: - sourcePVC: sabnzbd-config + sourcePVC: config-sabnzbd-0 trigger: schedule: "0 7 * * *" restic: diff --git a/kubernetes/apps/default/sabnzbd/app/volume.yaml b/kubernetes/apps/default/sabnzbd/app/volume.yaml deleted file mode 100644 index bc327e74a..000000000 --- a/kubernetes/apps/default/sabnzbd/app/volume.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: sabnzbd-config - namespace: default - labels: - app.kubernetes.io/name: &name sabnzbd - app.kubernetes.io/instance: *name - snapshot.home.arpa/enabled: "true" -spec: - accessModes: - - ReadWriteOnce - storageClassName: rook-ceph-block - resources: - requests: - storage: 1Gi