Skip to content

Commit

Permalink
Initial navidrome setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fabito committed May 1, 2024
1 parent 3745482 commit 7e485b0
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 0 deletions.
9 changes: 9 additions & 0 deletions base/ingress-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@ spec:
name: transmission
namespace: "htpc"
port: 9091
- kind: Rule
match: PathPrefix(`/navidrome`)
middlewares: []
priority: 0
services:
- kind: Service
name: navidrome
namespace: "htpc"
port: 4533
1 change: 1 addition & 0 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resources:
- bazarr
- transmission
- emby
- navidrome
- ingress-route.yaml

patchesStrategicMerge:
Expand Down
52 changes: 52 additions & 0 deletions base/navidrome/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: navidrome
name: navidrome
spec:
replicas: 1
selector:
matchLabels:
run: navidrome
template:
metadata:
labels:
run: navidrome
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: ND_DATAFOLDER
value: /data
- name: ND_BASEURL
value: /navidrome
- name: ND_MUSICFOLDER
value: /music

image: deluan/navidrome
name: navidrome
ports:
- containerPort: 4533
name: webui
volumeMounts:
- mountPath: /data
name: htpc-home
subPath: navidrome
- mountPath: /music
name: htpc-home
subPath: media/music
- mountPath: /downloads
name: htpc-home
subPath: downloads
6 changes: 6 additions & 0 deletions base/navidrome/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- deployment.yaml
- service.yaml
12 changes: 12 additions & 0 deletions base/navidrome/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: navidrome
spec:
ports:
- port: 4533
protocol: TCP
targetPort: 4533
name: webui
selector:
run: navidrome
13 changes: 13 additions & 0 deletions base/volumes_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,16 @@ spec:
name: htpc-home
# persistentVolumeClaim:
# claimName: local-path-pvc
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: navidrome
spec:
template:
spec:
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
2 changes: 2 additions & 0 deletions overlays/x86/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ images:
newTag: 4.0.5-r0-ls228
- name: emby/embyserver
newTag: 4.9.0.12
- name: deluan/navidrome
newTag: latest

0 comments on commit 7e485b0

Please sign in to comment.