2023-12-29 03:17:14 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: navidrome
|
|
|
|
namespace: navidrome-ns
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: navidrome
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: navidrome
|
|
|
|
spec:
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/hostname: gluttony
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 1000
|
|
|
|
containers:
|
|
|
|
- name: navidrome
|
|
|
|
image: deluan/navidrome:latest
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
ports:
|
|
|
|
- containerPort: 4533
|
|
|
|
env:
|
|
|
|
- name: ND_BASEURL
|
2023-12-29 03:36:38 +00:00
|
|
|
value: "https://music.clortox.com"
|
2023-12-29 03:17:14 +00:00
|
|
|
- name: ND_CACHEFOLDER
|
|
|
|
value: "/cache"
|
|
|
|
- name: ND_MUSICFOLDER
|
|
|
|
value: "/music"
|
|
|
|
- name: ND_DATAFOLDER
|
|
|
|
value: "/data"
|
|
|
|
|
|
|
|
- name: ND_SCANSCHEDULE
|
|
|
|
value: "1h"
|
|
|
|
- name: ND_LOGLEVEL
|
|
|
|
value: "info"
|
|
|
|
- name: ND_SESSIONTIMEOUT
|
|
|
|
value: "24h"
|
|
|
|
|
|
|
|
- name: ND_ENABLESHARING
|
|
|
|
value: "true"
|
|
|
|
- name: ND_UILOGINBACKGROUNDURL
|
|
|
|
value: "https://general.api.clortox.com/images/background/today"
|
|
|
|
- name: ND_UIWELCOMEMESSAGE
|
|
|
|
value: "Lol. Lmao even"
|
2023-12-29 03:44:10 +00:00
|
|
|
|
|
|
|
- name: ND_REVERSEPROXYUSERHEADER
|
2023-12-29 04:02:55 +00:00
|
|
|
value: "X-Authentik-Username"
|
2023-12-29 03:44:10 +00:00
|
|
|
- name: ND_REVERSEPROXYWHITELIST
|
2023-12-29 04:06:59 +00:00
|
|
|
value: "0.0.0.0/0"
|
2023-12-29 03:17:14 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: "/data"
|
|
|
|
- name: music
|
|
|
|
mountPath: "/music"
|
|
|
|
readOnly: true
|
|
|
|
- name: cache
|
|
|
|
mountPath: "/cache"
|
|
|
|
volumes:
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: navidrome-pvc-data
|
|
|
|
- name: music
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: navidrome-pvc-music
|
|
|
|
- name: cache
|
|
|
|
emptyDir: {}
|