59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: audiobookshelf
|
|
annotations:
|
|
keel.sh/policy: minor
|
|
keel.sh/trigger: poll
|
|
keel.sh/match-tag: "true"
|
|
keel.sh/pollSchedule: "@every 6h"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: audiobookshelf
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: audiobookshelf
|
|
spec:
|
|
nodeSelector:
|
|
role: master
|
|
containers:
|
|
- name: audiobookshelf
|
|
image: ghcr.io/advplyr/audiobookshelf:latest
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: Asia/Kuwait
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: ssd
|
|
subPath: configs/audiobookshelf/config
|
|
- mountPath: /metadata
|
|
name: ssd
|
|
subPath: configs/audiobookshelf/metadata
|
|
- mountPath: /audiobooks
|
|
subPath: books/audiobooks
|
|
name: ssd
|
|
- mountPath: /books
|
|
subPath: books/books
|
|
name: ssd
|
|
- mountPath: /podcasts
|
|
subPath: books/podcasts
|
|
name: ssd
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: ssd
|
|
persistentVolumeClaim:
|
|
claimName: nfs-ssd-pvc
|
|
- name: hdd
|
|
persistentVolumeClaim:
|
|
claimName: nfs-hdd-pvc
|