- k8s/grafana.yaml: Grafana 13.2.3 with a 1Gi PVC, sign-up and
anonymous access off. The InfluxDB datasource (URL and token from the
environment) and three dashboards — Live, Consumption, Charging — are
provisioned from k8s/grafana/ via kustomize-generated ConfigMaps.
- server.yaml for the Go server (port 8080, UID 65532, smaller limits),
image tag 2.0.0. The NetworkPolicy now admits Grafana to InfluxDB.
- ingress.yaml: IngressRoutes for car.stinnesbeck.com and Grafana
(placeholder host car-grafana.stinnesbeck.com) with tls: {}, using
Traefik's default certificate; the cert-manager Certificate is gone.
- secrets.example.yaml: drops the dashboard secrets, adds grafana-admin.
- AGENTS.md loses its Next.js block; SPECS.md describes the new setup.
The removal of web/ (the Next.js app) and of the stale .next/ cache
upstream had committed already landed in 51e6f6f, which was staged
together with the Go server by mistake.
Checked end to end in podman (Go server + InfluxDB 2.7.12 + Grafana
13.2.3): all 25 dashboard queries return the expected data, and the
dashboards were rendered with headless Chromium. Manifests validated
offline with kustomize and kubeconform. Nothing applied to a cluster.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
32 lines
877 B
YAML
32 lines
877 B
YAML
# Render with `kustomize build k8s/` (or `kubectl kustomize k8s/`) and apply it yourself.
|
|
# The Secrets are not included: create them from secrets.example.yaml first.
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- influxdb.yaml
|
|
- server.yaml
|
|
- grafana.yaml
|
|
- ingress.yaml
|
|
images:
|
|
- name: git.stinnesbeck.com/nils/mg4-server
|
|
newTag: "2.0.0"
|
|
generatorOptions:
|
|
labels:
|
|
app.kubernetes.io/part-of: mg4
|
|
configMapGenerator:
|
|
- name: grafana-datasources
|
|
namespace: mg4
|
|
files:
|
|
- mg4.yaml=grafana/datasources.yaml
|
|
- name: grafana-dashboard-provider
|
|
namespace: mg4
|
|
files:
|
|
- mg4.yaml=grafana/dashboards.yaml
|
|
- name: grafana-dashboards
|
|
namespace: mg4
|
|
files:
|
|
- grafana/dashboards/live.json
|
|
- grafana/dashboards/consumption.json
|
|
- grafana/dashboards/charging.json
|