From 6a010d4897703f81208f1cb1b713ea067d48b575 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 15 Jan 2026 16:05:41 -0600 Subject: [PATCH] add shelfmark --- clusters/cl01tl/helm/blocky/values.yaml | 1 + clusters/cl01tl/helm/gatus/values.yaml | 4 +- clusters/cl01tl/helm/homepage/values.yaml | 6 ++ clusters/cl01tl/helm/shelfmark/Chart.yaml | 21 ++++ .../templates/persistent-volume-claim.yaml | 17 ++++ .../templates/persistent-volume.yaml | 23 +++++ clusters/cl01tl/helm/shelfmark/values.yaml | 96 +++++++++++++++++++ hosts/ps08rp/blocky/config.yml | 1 + hosts/ps09rp/blocky/config.yml | 1 + 9 files changed, 168 insertions(+), 2 deletions(-) create mode 100644 clusters/cl01tl/helm/shelfmark/Chart.yaml create mode 100644 clusters/cl01tl/helm/shelfmark/templates/persistent-volume-claim.yaml create mode 100644 clusters/cl01tl/helm/shelfmark/templates/persistent-volume.yaml create mode 100644 clusters/cl01tl/helm/shelfmark/values.yaml diff --git a/clusters/cl01tl/helm/blocky/values.yaml b/clusters/cl01tl/helm/blocky/values.yaml index a7e11f270..f41ebdec0 100644 --- a/clusters/cl01tl/helm/blocky/values.yaml +++ b/clusters/cl01tl/helm/blocky/values.yaml @@ -155,6 +155,7 @@ blocky: radarr-standup IN CNAME traefik-cl01tl searxng IN CNAME traefik-cl01tl seerr IN CNAME traefik-cl01tl + shelfmark IN CNAME traefik-cl01tl slskd IN CNAME traefik-cl01tl sonarr IN CNAME traefik-cl01tl sonarr-4k IN CNAME traefik-cl01tl diff --git a/clusters/cl01tl/helm/gatus/values.yaml b/clusters/cl01tl/helm/gatus/values.yaml index f20df6e32..f054ec373 100644 --- a/clusters/cl01tl/helm/gatus/values.yaml +++ b/clusters/cl01tl/helm/gatus/values.yaml @@ -322,8 +322,8 @@ gatus: - name: slskd url: https://slskd.alexlebens.net <<: *defaults - - name: ephemera - url: https://ephemera.alexlebens.net + - name: shelfmark + url: https://shelfmark.alexlebens.net <<: *defaults - name: listenarr url: https://listenarr.alexlebens.net diff --git a/clusters/cl01tl/helm/homepage/values.yaml b/clusters/cl01tl/helm/homepage/values.yaml index fa3057444..154abc482 100644 --- a/clusters/cl01tl/helm/homepage/values.yaml +++ b/clusters/cl01tl/helm/homepage/values.yaml @@ -680,6 +680,12 @@ homepage: siteMonitor: http://slskd.slskd:5030 statusStyle: dot - Books: + - Shelfmark: + icon: sh-shelfmark.webp + description: Books + href: https://shelfmark.alexlebens.net + siteMonitor: http://shelfmark.ephemera:80 + statusStyle: dot - Ephemera: icon: sh-ephemera.webp description: Books diff --git a/clusters/cl01tl/helm/shelfmark/Chart.yaml b/clusters/cl01tl/helm/shelfmark/Chart.yaml new file mode 100644 index 000000000..0fe74655d --- /dev/null +++ b/clusters/cl01tl/helm/shelfmark/Chart.yaml @@ -0,0 +1,21 @@ +apiVersion: v2 +name: shelfmark +version: 1.0.0 +description: Shelfmark +keywords: + - shelfmark + - books +home: https://wiki.alexlebens.dev/s/ +sources: + - https://github.com/calibrain/shelfmark + - https://github.com/calibrain/shelfmark/pkgs/container/shelfmark + - https://github.com/bjw-s-labs/helm-charts/tree/main/charts/other/app-template +maintainers: + - name: alexlebens +dependencies: + - name: app-template + alias: shelfmark + repository: https://bjw-s-labs.github.io/helm-charts/ + version: 4.4.0 +icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/shelfmark.webp +appVersion: v1.0.1 diff --git a/clusters/cl01tl/helm/shelfmark/templates/persistent-volume-claim.yaml b/clusters/cl01tl/helm/shelfmark/templates/persistent-volume-claim.yaml new file mode 100644 index 000000000..816a8989f --- /dev/null +++ b/clusters/cl01tl/helm/shelfmark/templates/persistent-volume-claim.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: shelfmark-import-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: shelfmark-import-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + volumeName: shelfmark-import-nfs-storage + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi diff --git a/clusters/cl01tl/helm/shelfmark/templates/persistent-volume.yaml b/clusters/cl01tl/helm/shelfmark/templates/persistent-volume.yaml new file mode 100644 index 000000000..04cb89dfc --- /dev/null +++ b/clusters/cl01tl/helm/shelfmark/templates/persistent-volume.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: shelfmark-import-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: shelfmark-import-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + persistentVolumeReclaimPolicy: Retain + storageClassName: nfs-client + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + nfs: + path: /volume2/Storage/Books Import + server: synologybond.alexlebens.net + mountOptions: + - vers=4 + - minorversion=1 + - noac diff --git a/clusters/cl01tl/helm/shelfmark/values.yaml b/clusters/cl01tl/helm/shelfmark/values.yaml new file mode 100644 index 000000000..01e33374b --- /dev/null +++ b/clusters/cl01tl/helm/shelfmark/values.yaml @@ -0,0 +1,96 @@ +shelfmark: + controllers: + main: + type: deployment + replicas: 1 + strategy: Recreate + revisionHistoryLimit: 3 + containers: + main: + image: + repository: ghcr.io/calibrain/shelfmark + tag: v1.0.1 + pullPolicy: IfNotPresent + env: + - name: FLASK_PORT + value: 8084 + - name: INGEST_DIR + value: /ingest + - name: SEARCH_MODE + value: direct + probes: + liveness: + enabled: true + custom: true + spec: + exec: + command: + - CMD + - curl + - -sf + - http://localhost:8084/api/health + failureThreshold: 5 + initialDelaySeconds: 60 + periodSeconds: 30 + successThreshold: 1 + timeoutSeconds: 30 + resources: + requests: + cpu: 10m + memory: 256Mi + service: + main: + ports: + http: + port: 8084 + targetPort: 8084 + protocol: HTTP + route: + main: + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: traefik-gateway + namespace: traefik + hostnames: + - shelfmark.alexlebens.net + rules: + - backendRefs: + - group: '' + kind: Service + name: shelfmark + port: 8084 + weight: 100 + matches: + - path: + type: PathPrefix + value: / + persistence: + config: + storageClass: ceph-block + accessMode: ReadWriteOnce + size: 1Gi + retain: true + advancedMounts: + main: + main: + - path: /config + readOnly: false + ingest: + existingClaim: shelfmark-import-nfs-storage + advancedMounts: + main: + main: + - path: /ingest + readOnly: false +volsync-target-config: + pvcTarget: shelfmark-config + local: + enabled: true + schedule: 0 8 * * * + remote: + enabled: false + external: + enabled: true + schedule: 0 9 * * * diff --git a/hosts/ps08rp/blocky/config.yml b/hosts/ps08rp/blocky/config.yml index ba1873243..66aa8d8c9 100644 --- a/hosts/ps08rp/blocky/config.yml +++ b/hosts/ps08rp/blocky/config.yml @@ -130,6 +130,7 @@ customDNS: radarr-standup IN CNAME traefik-cl01tl searxng IN CNAME traefik-cl01tl seerr IN CNAME traefik-cl01tl + shelfmark IN CNAME traefik-cl01tl slskd IN CNAME traefik-cl01tl sonarr IN CNAME traefik-cl01tl sonarr-4k IN CNAME traefik-cl01tl diff --git a/hosts/ps09rp/blocky/config.yml b/hosts/ps09rp/blocky/config.yml index 0c41c6270..356d16ee6 100644 --- a/hosts/ps09rp/blocky/config.yml +++ b/hosts/ps09rp/blocky/config.yml @@ -151,6 +151,7 @@ customDNS: radarr-standup IN CNAME traefik-cl01tl searxng IN CNAME traefik-cl01tl seerr IN CNAME traefik-cl01tl + shelfmark IN CNAME traefik-cl01tl slskd IN CNAME traefik-cl01tl sonarr IN CNAME traefik-cl01tl sonarr-4k IN CNAME traefik-cl01tl