128 lines
3.2 KiB
YAML
128 lines
3.2 KiB
YAML
audiobookshelf:
|
|
controllers:
|
|
main:
|
|
type: deployment
|
|
replicas: 1
|
|
strategy: Recreate
|
|
revisionHistoryLimit: 3
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/advplyr/audiobookshelf
|
|
tag: 2.31.0
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
- name: TZ
|
|
value: US/Central
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
apprise-api:
|
|
image:
|
|
repository: caronc/apprise
|
|
tag: 1.3.0
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
- name: TZ
|
|
value: US/Central
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: APPRISE_STORAGE_MODE
|
|
value: memory
|
|
- name: APPRISE_STATEFUL_MODE
|
|
value: disabled
|
|
- name: APPRISE_WORKER_COUNT
|
|
value: 1
|
|
- name: APPRISE_STATELESS_URLS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: audiobookshelf-apprise-config
|
|
key: ntfy-url
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
service:
|
|
main:
|
|
controller: main
|
|
ports:
|
|
http:
|
|
port: 80
|
|
targetPort: 80
|
|
protocol: HTTP
|
|
apprise:
|
|
port: 8000
|
|
targetPort: 8000
|
|
protocol: HTTP
|
|
serviceMonitor:
|
|
main:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: audiobookshelf
|
|
app.kubernetes.io/instance: audiobookshelf
|
|
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
|
|
endpoints:
|
|
- port: apprise
|
|
scheme: http
|
|
path: /metrics
|
|
interval: 30s
|
|
scrapeTimeout: 15s
|
|
route:
|
|
main:
|
|
kind: HTTPRoute
|
|
parentRefs:
|
|
- group: gateway.networking.k8s.io
|
|
kind: Gateway
|
|
name: traefik-gateway
|
|
namespace: traefik
|
|
hostnames:
|
|
- audiobookshelf.alexlebens.net
|
|
rules:
|
|
- backendRefs:
|
|
- group: ''
|
|
kind: Service
|
|
name: audiobookshelf
|
|
port: 80
|
|
weight: 100
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
persistence:
|
|
config:
|
|
forceRename: audiobookshelf-config
|
|
storageClass: ceph-block
|
|
accessMode: ReadWriteOnce
|
|
size: 2Gi
|
|
retain: true
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /config
|
|
readOnly: false
|
|
metadata:
|
|
forceRename: audiobookshelf-metadata
|
|
storageClass: ceph-block
|
|
accessMode: ReadWriteOnce
|
|
size: 10Gi
|
|
retain: true
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /metadata
|
|
readOnly: false
|
|
audiobooks:
|
|
existingClaim: audiobookshelf-nfs-storage
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /mnt/store/
|
|
readOnly: false
|
|
volsync-target-config:
|
|
pvcTarget: audiobookshelf-config
|
|
volsync-target-metadata:
|
|
pvcTarget: audiobookshelf-metadata
|