From 4418263b9f57fb85261b388de36a688217100726 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 17 May 2025 17:30:12 -0500 Subject: [PATCH] add whodb --- .../cl01tl/applications/homepage/values.yaml | 6 ++++ clusters/cl01tl/services/blocky/values.yaml | 1 + clusters/cl01tl/storage/whodb/Chart.yaml | 22 ++++++++++++++ .../storage/whodb/templates/http-route.yaml | 28 ++++++++++++++++++ clusters/cl01tl/storage/whodb/values.yaml | 29 +++++++++++++++++++ hosts/ps08rp/blocky/config.yml | 1 + hosts/ps09rp/blocky/config.yml | 1 + 7 files changed, 88 insertions(+) create mode 100644 clusters/cl01tl/storage/whodb/Chart.yaml create mode 100644 clusters/cl01tl/storage/whodb/templates/http-route.yaml create mode 100644 clusters/cl01tl/storage/whodb/values.yaml diff --git a/clusters/cl01tl/applications/homepage/values.yaml b/clusters/cl01tl/applications/homepage/values.yaml index 3ca224819..93f4ec63a 100644 --- a/clusters/cl01tl/applications/homepage/values.yaml +++ b/clusters/cl01tl/applications/homepage/values.yaml @@ -450,6 +450,12 @@ homepage: href: https://pgadmin.alexlebens.net siteMonitor: http://pgadmin.pgadmin:80 statusStyle: dot + - Database: + icon: sh-whodb.webp + description: WhoDB + href: https://whodb.alexlebens.net + siteMonitor: http://whodb.whodb:80 + statusStyle: dot - Secrets: icon: sh-hashicorp-vault.webp description: Vault diff --git a/clusters/cl01tl/services/blocky/values.yaml b/clusters/cl01tl/services/blocky/values.yaml index 3f6f0b982..b1dea9d48 100644 --- a/clusters/cl01tl/services/blocky/values.yaml +++ b/clusters/cl01tl/services/blocky/values.yaml @@ -153,6 +153,7 @@ blocky: tdarr IN CNAME traefik-cl01tl tubearchivist IN CNAME traefik-cl01tl vault IN CNAME traefik-cl01tl + whodb IN CNAME traefik-cl01tl yamtrack IN CNAME traefik-cl01tl blocking: diff --git a/clusters/cl01tl/storage/whodb/Chart.yaml b/clusters/cl01tl/storage/whodb/Chart.yaml new file mode 100644 index 000000000..9f8e98e0a --- /dev/null +++ b/clusters/cl01tl/storage/whodb/Chart.yaml @@ -0,0 +1,22 @@ +apiVersion: v2 +name: whodb +version: 1.0.0 +description: WhoDB +keywords: + - whodb + - postgresql + - database +home: https://wiki.alexlebens.dev/s/f329e026-7ade-4a3c-a5f1-1ac1492b9786 +sources: + - https://github.com/clidey/whodb + - https://hub.docker.com/r/clidey/whodb + - https://github.com/bjw-s-labs/helm-charts/tree/main/charts/other/app-template +maintainers: + - name: alexlebens +dependencies: + - name: app-template + alias: whodb + repository: https://bjw-s-labs.github.io/helm-charts/ + version: 4.0.1 +icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/whodb.png +appVersion: 0.53.0 diff --git a/clusters/cl01tl/storage/whodb/templates/http-route.yaml b/clusters/cl01tl/storage/whodb/templates/http-route.yaml new file mode 100644 index 000000000..0e16e79d6 --- /dev/null +++ b/clusters/cl01tl/storage/whodb/templates/http-route.yaml @@ -0,0 +1,28 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: http-route-whodb + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: http-route-whodb + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: traefik-gateway + namespace: traefik + hostnames: + - whodb.alexlebens.net + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - group: '' + kind: Service + name: whodb + port: 80 + weight: 100 diff --git a/clusters/cl01tl/storage/whodb/values.yaml b/clusters/cl01tl/storage/whodb/values.yaml new file mode 100644 index 000000000..a9df1b4a8 --- /dev/null +++ b/clusters/cl01tl/storage/whodb/values.yaml @@ -0,0 +1,29 @@ +whodb: + controllers: + main: + type: deployment + replicas: 1 + strategy: Recreate + containers: + main: + image: + repository: clidey/whodb + tag: 0.53.0 + pullPolicy: IfNotPresent + env: + - name: WHODB_OLLAMA_HOST + value: ollama-server-2.ollama + - name: WHODB_OLLAMA_PORT + value: 11434 + resources: + requests: + cpu: 10m + memory: 256Mi + service: + main: + controller: main + ports: + http: + port: 80 + targetPort: 8080 + protocol: TCP diff --git a/hosts/ps08rp/blocky/config.yml b/hosts/ps08rp/blocky/config.yml index 951cc6ea0..49fada709 100644 --- a/hosts/ps08rp/blocky/config.yml +++ b/hosts/ps08rp/blocky/config.yml @@ -128,6 +128,7 @@ customDNS: tdarr IN CNAME traefik-cl01tl tubearchivist IN CNAME traefik-cl01tl vault IN CNAME traefik-cl01tl + whodb IN CNAME traefik-cl01tl yamtrack IN CNAME traefik-cl01tl blocking: diff --git a/hosts/ps09rp/blocky/config.yml b/hosts/ps09rp/blocky/config.yml index 951cc6ea0..49fada709 100644 --- a/hosts/ps09rp/blocky/config.yml +++ b/hosts/ps09rp/blocky/config.yml @@ -128,6 +128,7 @@ customDNS: tdarr IN CNAME traefik-cl01tl tubearchivist IN CNAME traefik-cl01tl vault IN CNAME traefik-cl01tl + whodb IN CNAME traefik-cl01tl yamtrack IN CNAME traefik-cl01tl blocking: