From 3d33a394c470acdaaad83f2db2a872437fc10a5f Mon Sep 17 00:00:00 2001 From: TapTap Date: Sun, 18 Oct 2026 19:13:26 +0200 Subject: [PATCH] add audiobookshelf --- audiobookshelf/audiobookshelf.yaml | 86 ++++++++++++++++++++++++++++++ audiobookshelf/kustomization.yaml | 6 +++ audiobookshelf/namespace.yaml | 4 ++ 3 files changed, 96 insertions(+) create mode 100644 audiobookshelf/audiobookshelf.yaml create mode 100644 audiobookshelf/kustomization.yaml create mode 100644 audiobookshelf/namespace.yaml diff --git a/audiobookshelf/audiobookshelf.yaml b/audiobookshelf/audiobookshelf.yaml new file mode 100644 index 0000000..460d218 --- /dev/null +++ b/audiobookshelf/audiobookshelf.yaml @@ -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 diff --git a/audiobookshelf/kustomization.yaml b/audiobookshelf/kustomization.yaml new file mode 100644 index 0000000..d45149b --- /dev/null +++ b/audiobookshelf/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: audiobookshelf +resources: + - namespace.yaml + - audiobookshelf.yaml diff --git a/audiobookshelf/namespace.yaml b/audiobookshelf/namespace.yaml new file mode 100644 index 0000000..9c35c7b --- /dev/null +++ b/audiobookshelf/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: audiobookshelf