Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add navidrome #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 0.52.0
Loading