k3s/services/audiobookshelf/audiobookshelf-deployment.yaml

55 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: audiobookshelf
annotations:
keel.sh/policy: "all"
keel.sh/match-tag: "true"
keel.sh/schedule: "0 3 * * *"
spec:
replicas: 1
selector:
matchLabels:
app: audiobookshelf
strategy:
type: Recreate
template:
metadata:
labels:
app: audiobookshelf
spec:
containers:
- env:
- name: TZ
value: America/New_York
image: ghcr.io/advplyr/audiobookshelf:latest
name: audiobookshelf
ports:
- containerPort: 80
protocol: TCP
name: web-ui
volumeMounts:
- mountPath: /audiobooks
name: audiobookshelf-audiobooks
- mountPath: /podcasts
name: audiobookshelf-podcasts
- mountPath: /config
name: audiobookshelf-config
- mountPath: /metadata
name: audiobookshelf-metadata
restartPolicy: Always
volumes:
- name: audiobookshelf-audiobooks
nfs:
server: robin.home.nest
path: /yarr/media/audiobooks
- name: audiobookshelf-podcasts
nfs:
server: robin.home.nest
path: /yarr/media/podcasts
- name: audiobookshelf-config
persistentVolumeClaim:
claimName: audiobookshelf-config-pvc
- name: audiobookshelf-metadata
persistentVolumeClaim:
claimName: audiobookshelf-metadata-pvc