62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: beets
|
|
labels:
|
|
app.kubernetes.io/name: beets
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: beets
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: beets
|
|
spec:
|
|
volumes:
|
|
- name: downloads
|
|
nfs:
|
|
server: 192.168.0.99
|
|
path: /mnt/test1/media/Music/downloads
|
|
- name: library
|
|
nfs:
|
|
server: 192.168.0.99
|
|
path: /mnt/test1/media/Music/library
|
|
- name: config
|
|
nfs:
|
|
server: 192.168.0.99
|
|
path: /mnt/test1/media/config/beets/
|
|
containers:
|
|
- name: beets
|
|
image: lscr.io/linuxserver/beets:latest
|
|
#livenessProbe:
|
|
# exec:
|
|
# command:
|
|
# - cat
|
|
# - /tmp/FAILNOW
|
|
# # httpGet:
|
|
# # path: /health
|
|
# # port: 5030
|
|
# initialDelaySeconds: 21600 #reboot server every quarter day
|
|
# #initialDelaySeconds: 60
|
|
# failureThreshold: 2
|
|
# periodSeconds: 10
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: "Etc/UTC"
|
|
ports:
|
|
- containerPort: 8337
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
- name: library
|
|
mountPath: /music
|
|
|