Navidrome
This commit is contained in:
parent
f464d7e225
commit
75db419c93
2 changed files with 82 additions and 0 deletions
64
services/navidrome/navidrome-deployment.yaml
Normal file
64
services/navidrome/navidrome-deployment.yaml
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f compose-navidrome.yaml
|
||||||
|
kompose.version: 1.38.0 (HEAD)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: navidrome
|
||||||
|
name: navidrome
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: navidrome
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f compose-navidrome.yaml
|
||||||
|
kompose.version: 1.38.0 (HEAD)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: navidrome
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: ND_LASTFM_APIKEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: lastfm-api-key
|
||||||
|
key: api_key
|
||||||
|
- name: ND_LASTFM_ENABLED
|
||||||
|
value: "true"
|
||||||
|
- name: ND_LASTFM_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: lastfm-secret
|
||||||
|
key: secret
|
||||||
|
- name: TZ
|
||||||
|
value: America/New_York
|
||||||
|
image: deluan/navidrome:latest
|
||||||
|
name: navidrome
|
||||||
|
ports:
|
||||||
|
- containerPort: 4533
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: navidrome-data
|
||||||
|
- mountPath: /music
|
||||||
|
name: navidrome-media
|
||||||
|
readOnly: true
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: navidrome-data
|
||||||
|
nfs:
|
||||||
|
server: birdfeeder2.home.nest
|
||||||
|
path: /k3s/navidrome
|
||||||
|
- name: navidrome-media
|
||||||
|
nfs:
|
||||||
|
server: birdfeeder1.home.nest
|
||||||
|
path: /yarr/media/music
|
||||||
18
services/navidrome/navidrome-service.yaml
Normal file
18
services/navidrome/navidrome-service.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f compose-navidrome.yaml
|
||||||
|
kompose.version: 1.38.0 (HEAD)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: navidrome
|
||||||
|
name: navidrome
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- name: "30533"
|
||||||
|
port: 30533
|
||||||
|
targetPort: 4533
|
||||||
|
nodePort: 30533
|
||||||
|
selector:
|
||||||
|
io.kompose.service: navidrome
|
||||||
Loading…
Add table
Reference in a new issue