87 lines
2.3 KiB
YAML
87 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: audiobookshelf-deployment
|
|
labels:
|
|
app: audiobookshelf
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: audiobookshelf
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: audiobookshelf
|
|
spec:
|
|
containers:
|
|
- name: audiobookshelf
|
|
image: ghcr.io/advplyr/audiobookshelf:latest
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Berlin
|
|
volumeMounts:
|
|
- name: audiobookshelf-config
|
|
mountPath: /config
|
|
- name: audiobookshelf-metadata
|
|
mountPath: /metadata
|
|
- name: audiobookshelf-audiobooks
|
|
mountPath: /audiobooks
|
|
readOnly: true
|
|
- name: audiobookshelf-podcasts
|
|
mountPath: /podcasts
|
|
readOnly: true
|
|
volumes:
|
|
- name: audiobookshelf-config
|
|
hostPath:
|
|
path: /root/kubernetes/audiobookshelf/data/config
|
|
- name: audiobookshelf-metadata
|
|
hostPath:
|
|
path: /root/kubernetes/audiobookshelf/data/metadata
|
|
- name: audiobookshelf-audiobooks
|
|
hostPath:
|
|
path: "/root/kubernetes/nextcloud/data/mount/html/data/TapTap/files/Media/Media Family/ListeningAudio"
|
|
- name: audiobookshelf-podcasts
|
|
hostPath:
|
|
path: "/root/kubernetes/nextcloud/data/mount/html/data/TapTap/files/Media/Media Family/Books/Audiobooks"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: audiobookshelf-service
|
|
spec:
|
|
selector:
|
|
app: audiobookshelf
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: audiobookshelf-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
|
|
spec:
|
|
ingressClassName: "traefik"
|
|
tls:
|
|
- hosts:
|
|
- audiobookshelf.tap-tap.win
|
|
secretName: audiobookshelf-tls-secret
|
|
rules:
|
|
- host: audiobookshelf.tap-tap.win
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: audiobookshelf-service
|
|
port:
|
|
number: 80
|