From 5e102d7b19693fc43dce2a1e5fe32d22e8531e4c Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 22 Mar 2026 17:49:42 +0000 Subject: [PATCH] tmp/folder (#4978) Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/4978 --- clusters/cl01tl/helm/blocky/values.yaml | 1 + clusters/cl01tl/helm/foldergram/Chart.lock | 9 ++ clusters/cl01tl/helm/foldergram/Chart.yaml | 25 ++++++ .../templates/persistent-volume-claim.yaml | 17 ++++ .../templates/persistent-volume.yaml | 23 +++++ clusters/cl01tl/helm/foldergram/values.yaml | 87 +++++++++++++++++++ clusters/cl01tl/helm/gatus/values.yaml | 3 + clusters/cl01tl/helm/homepage/values.yaml | 6 ++ hosts/ps08rp/blocky/config.yml | 1 + hosts/ps09rp/blocky/config.yml | 1 + 10 files changed, 173 insertions(+) create mode 100644 clusters/cl01tl/helm/foldergram/Chart.lock create mode 100644 clusters/cl01tl/helm/foldergram/Chart.yaml create mode 100644 clusters/cl01tl/helm/foldergram/templates/persistent-volume-claim.yaml create mode 100644 clusters/cl01tl/helm/foldergram/templates/persistent-volume.yaml create mode 100644 clusters/cl01tl/helm/foldergram/values.yaml diff --git a/clusters/cl01tl/helm/blocky/values.yaml b/clusters/cl01tl/helm/blocky/values.yaml index 57afdd2d5..6ad4b49d1 100644 --- a/clusters/cl01tl/helm/blocky/values.yaml +++ b/clusters/cl01tl/helm/blocky/values.yaml @@ -117,6 +117,7 @@ blocky: directus IN CNAME traefik-cl01tl excalidraw IN CNAME traefik-cl01tl feishin IN CNAME traefik-cl01tl + foldergram IN CNAME traefik-cl01tl garage-s3 IN CNAME traefik-cl01tl garage-webui IN CNAME traefik-cl01tl gatus IN CNAME traefik-cl01tl diff --git a/clusters/cl01tl/helm/foldergram/Chart.lock b/clusters/cl01tl/helm/foldergram/Chart.lock new file mode 100644 index 000000000..27e2ddb80 --- /dev/null +++ b/clusters/cl01tl/helm/foldergram/Chart.lock @@ -0,0 +1,9 @@ +dependencies: +- name: app-template + repository: https://bjw-s-labs.github.io/helm-charts/ + version: 4.6.2 +- name: volsync-target + repository: oci://harbor.alexlebens.net/helm-charts + version: 0.8.0 +digest: sha256:59100c6fbfb829f9d703b9ee1cf869c4fd77b6ff53c63b0c644a757223027e58 +generated: "2026-03-22T12:42:43.150705-05:00" diff --git a/clusters/cl01tl/helm/foldergram/Chart.yaml b/clusters/cl01tl/helm/foldergram/Chart.yaml new file mode 100644 index 000000000..53e05aa12 --- /dev/null +++ b/clusters/cl01tl/helm/foldergram/Chart.yaml @@ -0,0 +1,25 @@ +apiVersion: v2 +name: foldergram +version: 1.0.0 +description: Foldergram +keywords: + - foldergram + - pictures +home: https://wiki.alexlebens.dev/ +sources: + - https://github.com/foldergram/foldergram + - https://github.com/bjw-s-labs/helm-charts/tree/main/charts/other/app-template +maintainers: + - name: alexlebens +dependencies: + - name: app-template + alias: foldergram + repository: https://bjw-s-labs.github.io/helm-charts/ + version: 4.6.2 + - name: volsync-target + alias: volsync-target-data + version: 0.8.0 + repository: oci://harbor.alexlebens.net/helm-charts +icon: https://raw.githubusercontent.com/foldergram/foldergram/refs/heads/main/client/public/icon-512.png +# renovate: datasource=github-releases depName=foldergram/foldergram +appVersion: v1.0.5 diff --git a/clusters/cl01tl/helm/foldergram/templates/persistent-volume-claim.yaml b/clusters/cl01tl/helm/foldergram/templates/persistent-volume-claim.yaml new file mode 100644 index 000000000..ebe797d84 --- /dev/null +++ b/clusters/cl01tl/helm/foldergram/templates/persistent-volume-claim.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: foldergram-pictures-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: foldergram-pictures-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + volumeName: foldergram-pictures-nfs-storage + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi diff --git a/clusters/cl01tl/helm/foldergram/templates/persistent-volume.yaml b/clusters/cl01tl/helm/foldergram/templates/persistent-volume.yaml new file mode 100644 index 000000000..741c53ff8 --- /dev/null +++ b/clusters/cl01tl/helm/foldergram/templates/persistent-volume.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: foldergram-pictures-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: foldergram-pictures-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/Pictures + server: synologybond.alexlebens.net + mountOptions: + - vers=4 + - minorversion=1 + - noac diff --git a/clusters/cl01tl/helm/foldergram/values.yaml b/clusters/cl01tl/helm/foldergram/values.yaml new file mode 100644 index 000000000..9877648bc --- /dev/null +++ b/clusters/cl01tl/helm/foldergram/values.yaml @@ -0,0 +1,87 @@ +foldergram: + controllers: + main: + type: deployment + replicas: 1 + strategy: Recreate + revisionHistoryLimit: 3 + containers: + main: + image: + repository: ghcr.io/foldergram/foldergram + tag: v1.0.5 + pullPolicy: IfNotPresent + env: + - name: IMAGE_DETAIL_SOURCE + value: original + - name: DERIVATIVE_MODE + value: lazy + - name: DATA_ROOT + value: ./data + - name: GALLERY_ROOT + value: /gallery + - name: CSRF_TRUSTED_ORIGINS + value: https://foldergram.alexlebens.net + resources: + requests: + cpu: 10m + memory: 128Mi + service: + main: + controller: main + ports: + http: + port: 80 + targetPort: 4141 + protocol: HTTP + route: + main: + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: traefik-gateway + namespace: traefik + hostnames: + - foldergram.alexlebens.net + rules: + - backendRefs: + - group: '' + kind: Service + name: foldergram + port: 80 + weight: 100 + matches: + - path: + type: PathPrefix + value: / + persistence: + cache: + forceRename: foldergram-data + storageClass: ceph-block + accessMode: ReadWriteOnce + size: 10Gi + retain: false + advancedMounts: + main: + main: + - path: /app/data + readOnly: false + pictures: + existingClaim: foldergram-pictures-nfs-storage + advancedMounts: + main: + main: + - path: /gallery/pictures + readOnly: true +volsync-target-data: + pvcTarget: foldergram-data + local: + enabled: true + schedule: 46 11 * * * + remote: + enabled: true + schedule: 46 12 * * * + external: + enabled: true + schedule: 46 13 * * * diff --git a/clusters/cl01tl/helm/gatus/values.yaml b/clusters/cl01tl/helm/gatus/values.yaml index 396b10aae..b96cfc845 100644 --- a/clusters/cl01tl/helm/gatus/values.yaml +++ b/clusters/cl01tl/helm/gatus/values.yaml @@ -161,6 +161,9 @@ gatus: - name: photoview url: https://photoview.alexlebens.net <<: *defaults + - name: foldergram + url: https://foldergram.alexlebens.net + <<: *defaults - name: booklore url: https://booklore.alexlebens.net <<: *defaults diff --git a/clusters/cl01tl/helm/homepage/values.yaml b/clusters/cl01tl/helm/homepage/values.yaml index 5717a3450..46cf4d48a 100644 --- a/clusters/cl01tl/helm/homepage/values.yaml +++ b/clusters/cl01tl/helm/homepage/values.yaml @@ -202,6 +202,12 @@ homepage: href: https://photoview.alexlebens.net siteMonitor: http://photoview.photoview:80 statusStyle: dot + - Pictures: + icon: https://raw.githubusercontent.com/foldergram/foldergram/refs/heads/main/client/public/icon-512.png + description: Foldergram + href: https://foldergram.alexlebens.net + siteMonitor: http://foldergram.foldergram:80 + statusStyle: dot - Books: icon: sh-booklore.webp description: Grimmory diff --git a/hosts/ps08rp/blocky/config.yml b/hosts/ps08rp/blocky/config.yml index d530655aa..e65db852e 100644 --- a/hosts/ps08rp/blocky/config.yml +++ b/hosts/ps08rp/blocky/config.yml @@ -92,6 +92,7 @@ customDNS: directus IN CNAME traefik-cl01tl excalidraw IN CNAME traefik-cl01tl feishin IN CNAME traefik-cl01tl + foldergram IN CNAME traefik-cl01tl garage-s3 IN CNAME traefik-cl01tl garage-webui IN CNAME traefik-cl01tl gatus IN CNAME traefik-cl01tl diff --git a/hosts/ps09rp/blocky/config.yml b/hosts/ps09rp/blocky/config.yml index f3bc1a2c6..b9e854262 100644 --- a/hosts/ps09rp/blocky/config.yml +++ b/hosts/ps09rp/blocky/config.yml @@ -113,6 +113,7 @@ customDNS: directus IN CNAME traefik-cl01tl excalidraw IN CNAME traefik-cl01tl feishin IN CNAME traefik-cl01tl + foldergram IN CNAME traefik-cl01tl garage-s3 IN CNAME traefik-cl01tl garage-webui IN CNAME traefik-cl01tl gatus IN CNAME traefik-cl01tl