Initial commit
This commit is contained in:
commit
55b0cfc1f3
10 changed files with 298 additions and 0 deletions
48
navidrome/deployment.yml
Normal file
48
navidrome/deployment.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: navidrome
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: navidrome
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: navidrome
|
||||
spec:
|
||||
containers:
|
||||
- name: navidrome
|
||||
image: deluan/navidrome:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 4533
|
||||
volumeMounts:
|
||||
- name: music
|
||||
mountPath: /music
|
||||
readOnly: true
|
||||
- name: navidrome-config
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: music
|
||||
hostPath:
|
||||
path: /mnt/nfs/music
|
||||
- name: navidrome-config
|
||||
persistentVolumeClaim:
|
||||
claimName: navidrome-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: navidrome-config
|
||||
namespace: navidrome
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 128Mi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
24
navidrome/ingress.yml
Normal file
24
navidrome/ingress.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: navidrome
|
||||
labels:
|
||||
app.kubernetes.io/name: navidrome
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-production"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- navidrome.foxhawk.co.uk
|
||||
secretName: navidrome-tls
|
||||
rules:
|
||||
- host: navidrome.foxhawk.co.uk
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: navidrome
|
||||
port:
|
||||
number: 80
|
||||
11
navidrome/service.yml
Normal file
11
navidrome/service.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: navidrome
|
||||
spec:
|
||||
selector:
|
||||
app: navidrome
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 4533
|
||||
type: ClusterIP
|
||||
Loading…
Add table
Add a link
Reference in a new issue