convert to app template

This commit is contained in:
2024-06-22 19:21:02 -05:00
parent 25c1e32613
commit 82118e1e20
4 changed files with 68 additions and 29 deletions

View File

@@ -15,8 +15,9 @@ sources:
maintainers:
- name: alexlebens
dependencies:
- name: audiobookshelf
version: 2.0.0
repository: https://k8s-home-lab.github.io/helm-charts/
- name: app-template
alias: audiobookshelf
repository: https://bjw-s.github.io/helm-charts/
version: 3.2.1
icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/audiobookshelf.png
appVersion: 2.10.1

View File

@@ -4,7 +4,7 @@ metadata:
name: audiobookshelf-nfs-storage-backup
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/name: audiobookshelf-nfs-storage-backup
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: storage
@@ -25,7 +25,7 @@ metadata:
name: audiobookshelf-nfs-storage
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/name: audiobookshelf-nfs-storage
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: storage

View File

@@ -4,7 +4,7 @@ metadata:
name: audiobookshelf-nfs-storage
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/name: audiobookshelf-nfs-storage
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: storage
@@ -17,8 +17,8 @@ spec:
accessModes:
- ReadWriteMany
nfs:
path: {{ .Values.storage.nfs.path }}
server: {{ .Values.storage.nfs.server }}
path: /volume2/Storage
server: synologybond.alexlebens.net
mountOptions:
- vers=4
- minorversion=1

View File

@@ -1,13 +1,37 @@
audiobookshelf:
image:
repository: ghcr.io/advplyr/audiobookshelf
tag: 2.10.1
env:
TZ: US/Central
controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: ghcr.io/advplyr/audiobookshelf
tag: 2.10.1
pullPolicy: IfNotPresent
env:
- name: TZ
value: US/Central
resources:
requests:
cpu: 100m
memory: 256Mi
serviceAccount:
create: true
service:
main:
controller: main
ports:
http:
port: 80
targetPort: 80
protocol: HTTP
ingress:
main:
enabled: true
ingressClassName: traefik
className: traefik
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
@@ -17,32 +41,46 @@ audiobookshelf:
paths:
- path: /
pathType: Prefix
service:
name: audiobookshelf
port: 80
tls:
- secretName: audiobookshelf-secret-tls
hosts:
- audiobookshelf.alexlebens.net
- audiobookshelf.alexlebens.net
persistence:
config:
enabled: true
mountPath: /config
storageClass: ceph-block
accessMode: ReadWriteOnce
size: 2Gi
retain: true
advancedMounts:
main:
main:
- path: /config
readOnly: false
metadata:
enabled: true
mountPath: /metadata
storageClass: ceph-block
accessMode: ReadWriteOnce
size: 10Gi
retain: true
advancedMounts:
main:
main:
- path: /metadata
readOnly: false
backup:
enabled: true
mountPath: /metadata/backups
type: pvc
existingClaim: audiobookshelf-nfs-storage-backup
advancedMounts:
main:
main:
- path: /metadata/backups
readOnly: false
audiobooks:
enabled: true
mountPath: /mnt/store/
type: pvc
existingClaim: audiobookshelf-nfs-storage
storage:
nfs:
path: /volume2/Storage
server: synologybond.alexlebens.net
advancedMounts:
main:
main:
- path: /mnt/store/
readOnly: false