k3s/services/audiobookshelf/audiobookshelf-deployment.yaml

90 lines
2.3 KiB
YAML
Raw Normal View History

2026-03-30 14:36:42 -04:00
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f compose-abs.yaml
kompose.version: 1.38.0 (HEAD)
labels:
io.kompose.service: audiobookshelf
name: audiobookshelf
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: audiobookshelf
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f compose-abs.yaml
kompose.version: 1.38.0 (HEAD)
labels:
io.kompose.service: 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
2026-03-30 14:36:42 -04:00
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
2026-03-30 14:36:42 -04:00
path: /yarr/media/audiobooks
- name: audiobookshelf-podcasts
nfs:
server: robin.home.nest
2026-03-30 14:36:42 -04:00
path: /yarr/media/podcasts
- name: audiobookshelf-config
2026-06-10 20:51:10 -04:00
persistentVolumeClaim:
claimName: audiobookshelf-config-pvc
2026-03-30 14:36:42 -04:00
- name: audiobookshelf-metadata
2026-06-10 20:51:10 -04:00
persistentVolumeClaim:
claimName: audiobookshelf-metadata-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: audiobookshelf-config-pvc
labels:
recurring-job.longhorn.io/source: "enabled"
recurring-job-group.longhorn.io/app-config-group: "enabled"
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 3Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: audiobookshelf-metadata-pvc
labels:
recurring-job.longhorn.io/source: "enabled"
recurring-job-group.longhorn.io/app-config-group: "enabled"
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 10Mi