Skip to content

Commit

Permalink
feat(homepage): add grafana widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Dec 12, 2024
1 parent 9cfbb20 commit 6334a29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions registry/components/homepage/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions registry/components/monitoring/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6334a29

Please sign in to comment.