mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ sabnzbd app-template v2
This commit is contained in:
@@ -10,7 +10,7 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: app-template
|
chart: app-template
|
||||||
version: 1.5.1
|
version: 2.0.3
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: bjw-s
|
name: bjw-s
|
||||||
@@ -26,26 +26,69 @@ spec:
|
|||||||
retries: 3
|
retries: 3
|
||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
keepHistory: false
|
||||||
|
dependsOn:
|
||||||
|
- name: rook-ceph-cluster
|
||||||
|
namespace: rook-ceph
|
||||||
|
- name: volsync
|
||||||
|
namespace: volsync
|
||||||
values:
|
values:
|
||||||
controller:
|
defaultPodOptions:
|
||||||
annotations:
|
runAsUser: 568
|
||||||
reloader.stakater.com/auto: "true"
|
runAsGroup: 568
|
||||||
image:
|
fsGroup: 568
|
||||||
repository: ghcr.io/onedr0p/sabnzbd
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
tag: 4.1.0@sha256:91f3cd6b9f1c9988af5447f464b299630706eb7f691dee857eab1487d4bb626e
|
controllers:
|
||||||
env:
|
main:
|
||||||
TZ: "${TIMEZONE}"
|
type: statefulset
|
||||||
SABNZBD__PORT: &port 8080
|
annotations:
|
||||||
SABNZBD__HOST_WHITELIST_ENTRIES: >-
|
reloader.stakater.com/auto: "true"
|
||||||
sabnzbd,
|
containers:
|
||||||
sabnzbd.default,
|
main:
|
||||||
sabnzbd.default.svc,
|
image:
|
||||||
sabnzbd.default.svc.cluster,
|
repository: ghcr.io/onedr0p/sabnzbd
|
||||||
sabnzbd.default.svc.cluster.local,
|
tag: 4.1.0@sha256:91f3cd6b9f1c9988af5447f464b299630706eb7f691dee857eab1487d4bb626e
|
||||||
sabnzbd.${SECRET_CLUSTER_DOMAIN}
|
env:
|
||||||
envFrom:
|
TZ: "${TIMEZONE}"
|
||||||
- secretRef:
|
SABNZBD__PORT: &port 8080
|
||||||
name: sabnzbd-secret
|
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:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
@@ -54,55 +97,36 @@ spec:
|
|||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
className: "nginx"
|
||||||
annotations:
|
annotations:
|
||||||
auth.home.arpa/enabled: "true"
|
auth.home.arpa/enabled: "true"
|
||||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
||||||
proxy_set_header Accept-Encoding "";
|
|
||||||
sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://theme-park.${SECRET_CLUSTER_DOMAIN}/css/base/sabnzbd/nord.css"></head>';
|
|
||||||
sub_filter_once on;
|
|
||||||
hajimari.io/icon: mdi:download
|
hajimari.io/icon: mdi:download
|
||||||
hosts:
|
hosts:
|
||||||
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
service:
|
||||||
|
name: main
|
||||||
|
port: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- *host
|
- *host
|
||||||
podSecurityContext:
|
|
||||||
runAsUser: 568
|
|
||||||
runAsGroup: 568
|
|
||||||
fsGroup: 568
|
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
|
||||||
supplementalGroups:
|
|
||||||
- 100
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
|
||||||
enabled: true
|
|
||||||
existingClaim: sabnzbd-config
|
|
||||||
mountPath: /config
|
|
||||||
downloads:
|
downloads:
|
||||||
enabled: true
|
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_TRUENAS}"
|
server: "${LOCAL_LAN_TRUENAS}"
|
||||||
path: /mnt/storage/downloads
|
path: /mnt/storage/downloads
|
||||||
mountPath: /mnt/storage/downloads
|
globalMounts:
|
||||||
|
- path: /mnt/storage/downloads
|
||||||
music-usenet:
|
music-usenet:
|
||||||
enabled: true
|
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_TRUENAS}"
|
server: "${LOCAL_LAN_TRUENAS}"
|
||||||
path: /mnt/storage/music/.usenet
|
path: /mnt/storage/music/.usenet
|
||||||
mountPath: /mnt/storage/music/.usenet
|
globalMounts:
|
||||||
|
- path: /mnt/storage/music/.usenet
|
||||||
video-usenet:
|
video-usenet:
|
||||||
enabled: true
|
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_TRUENAS}"
|
server: "${LOCAL_LAN_TRUENAS}"
|
||||||
path: /mnt/storage/video/.usenet
|
path: /mnt/storage/video/.usenet
|
||||||
mountPath: /mnt/storage/video/.usenet
|
globalMounts:
|
||||||
resources:
|
- path: /mnt/storage/video/.usenet
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
memory: 250Mi
|
|
||||||
limits:
|
|
||||||
memory: 8000Mi
|
|
||||||
|
@@ -8,4 +8,3 @@ resources:
|
|||||||
- ./gatus.yaml
|
- ./gatus.yaml
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
- ./volsync.yaml
|
- ./volsync.yaml
|
||||||
- ./volume.yaml
|
|
||||||
|
@@ -30,7 +30,7 @@ metadata:
|
|||||||
name: sabnzbd
|
name: sabnzbd
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
sourcePVC: sabnzbd-config
|
sourcePVC: config-sabnzbd-0
|
||||||
trigger:
|
trigger:
|
||||||
schedule: "0 7 * * *"
|
schedule: "0 7 * * *"
|
||||||
restic:
|
restic:
|
||||||
|
@@ -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
|
|
Reference in New Issue
Block a user