add audiobookshelf

This commit is contained in:
TapTap committed 2026-10-18 19:13:26 +02:00
1 parent 3e6673c57e
commit 3d33a394c4
3 files changed
+96

No files matched your search

+86
View File
@@ -0,0 +1,86 @@
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
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: audiobookshelf
resources:
- namespace.yaml
- audiobookshelf.yaml
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: audiobookshelf