This commit is contained in:
parent
3d56e186b7
commit
ce3f9ccaef
12
navidrome/navidrome-data.yaml
Normal file
12
navidrome/navidrome-data.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: navidrome-pvc-data
|
||||
namespace: navidrome-ns
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 16Gi
|
66
navidrome/navidrome-deployment.yaml
Normal file
66
navidrome/navidrome-deployment.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
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
|
||||
value: ""
|
||||
- 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"
|
||||
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: {}
|
21
navidrome/navidrome-music-pv.yaml
Normal file
21
navidrome/navidrome-music-pv.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: navidrome-pv-media
|
||||
namespace: navidrome-ns
|
||||
spec:
|
||||
storageClassName: local-storage
|
||||
capacity:
|
||||
storage: 18000Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
hostPath:
|
||||
path: "/Main/Media"
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- gluttony
|
13
navidrome/navidrome-music-pvc.yaml
Normal file
13
navidrome/navidrome-music-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: navidrome-pvc-media
|
||||
namespace: navidrome-ns
|
||||
spec:
|
||||
volumeName: plex-pv-media
|
||||
storageClassName: local-storage
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 18000Gi
|
13
navidrome/navidrome-service.yaml
Normal file
13
navidrome/navidrome-service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: navidrome-services
|
||||
namespace: navidrome-ns
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 4533
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: navidrome
|
Loading…
Reference in New Issue
Block a user