⬆️ navidrome app-template v2

This commit is contained in:
auricom
2023-11-02 20:59:15 +01:00
parent 2408e20c0d
commit 94a3cad946
4 changed files with 48 additions and 56 deletions

View File

@@ -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
@@ -27,6 +27,16 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
defaultPodOptions:
enableServiceLinks: false
securityContext:
runAsUser: 568
runAsGroup: 568
controllers:
main:
type: statefulset
containers:
main:
image: image:
repository: ghcr.io/navidrome/navidrome repository: ghcr.io/navidrome/navidrome
tag: 0.49.3 tag: 0.49.3
@@ -42,6 +52,20 @@ spec:
ND_REVERSEPROXYWHITELIST: "0.0.0.0/0" ND_REVERSEPROXYWHITELIST: "0.0.0.0/0"
ND_SCANSCHEDULE: "@every 1h" ND_SCANSCHEDULE: "@every 1h"
ND_SESSIONTIMEOUT: 24h ND_SESSIONTIMEOUT: 24h
resources:
requests:
cpu: 10m
memory: 250Mi
limits:
memory: 750Mi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
service: service:
main: main:
ports: ports:
@@ -53,7 +77,7 @@ 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"
external-dns.home.arpa/enabled: "true" external-dns.home.arpa/enabled: "true"
@@ -62,31 +86,17 @@ spec:
- 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: navidrome-config
music: music:
enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music path: /mnt/storage/music
mountPath: /mnt/storage/music globalMounts:
- path: /mnt/storage/music
readOnly: true readOnly: true
resources:
requests:
cpu: 10m
memory: 250Mi
limits:
memory: 750Mi

View File

@@ -7,4 +7,3 @@ resources:
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: navidrome name: navidrome
namespace: default namespace: default
spec: spec:
sourcePVC: navidrome-config sourcePVC: config-navidrome-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: navidrome-config
namespace: default
labels:
app.kubernetes.io/name: &name navidrome
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: rook-ceph-block