From f4f454c584b43b71bd0ab5b8705a5a494b4664c1 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Sat, 7 Dec 2024 16:49:48 +0000 Subject: [PATCH] feat(homepage): add grafana widget --- registry/components/homepage/secrets.yaml | 3 +++ registry/components/monitoring/application.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/registry/components/homepage/secrets.yaml b/registry/components/homepage/secrets.yaml index 9e2279e..15836fb 100644 --- a/registry/components/homepage/secrets.yaml +++ b/registry/components/homepage/secrets.yaml @@ -28,6 +28,9 @@ spec: - secretKey: HOMEPAGE_VAR_CALENDAR_SIMON_KONSTRUCT_IO remoteRef: key: CALENDAR_SIMON_KONSTRUCT_IO + - secretKey: HOMEPAGE_VAR_GRAFANA_PASSWORD + remoteRef: + key: GRAFANA_PASSWORD - secretKey: HOMEPAGE_VAR_PIHOLE_API_KEY remoteRef: key: PIHOLE_API_KEY diff --git a/registry/components/monitoring/application.yaml b/registry/components/monitoring/application.yaml index 3596e71..4403b01 100644 --- a/registry/components/monitoring/application.yaml +++ b/registry/components/monitoring/application.yaml @@ -64,6 +64,10 @@ spec: gethomepage.dev/name: Grafana # Pod selector required because names don't match gethomepage.dev/pod-selector: app.kubernetes.io/name=grafana + gethomepage.dev/widget.type: grafana + gethomepage.dev/widget.url: http://monitoring-grafana.monitoring.svc.cluster.local + gethomepage.dev/widget.username: admin + gethomepage.dev/widget.password: "{{ `{{HOMEPAGE_VAR_GRAFANA_PASSWORD}}` }}" # Annotations are apparently parsed through Helm ingressClassName: nginx hosts: - grafana.simonemms.com