Watch
0
0
Fork
You've already forked hyperhive
0

run grafana as a pod in the cluster

The Deployment swarm-grafana replaces the swarm-grafana container: one
replica on a static local volume that is the container's data directory,
an init container that fetches the OIDC client secret and creates the
administrator password, the datasources' bearer and the encryption key in
the secret store, and a sidecar that keeps the controller's Viewer token.
The datasources reach the stores through the gateway with that bearer, and
Grafana's /metrics asks for the stores' kind of credential, which the vhost
sends. The five host units, the journal forwarder, its client glue and the
unix-socket directory go with the container.
This commit is contained in:
atlas 2026-11-27 22:51:25 +01:00
commit 9f62e71dae

View file

@ -135,7 +135,11 @@ container, its sockets, secrets and metrics:
The swarm's telemetry lands in one VictoriaMetrics, and one Grafana reads it,
at `metrics.<swarm-domain>` and `grafana.<swarm-domain>`. They run apart so you
can restart or break Grafana without losing the time-series database.
can restart or break Grafana without losing the time-series database. Both
run as pods in the host's cluster, and Grafana keeps its database on the host's
disk. Grafana reads its secrets when its pod starts: after you replace its OIDC
client secret, restart it with
`kubectl -n hyperhive rollout restart deployment/swarm-grafana`.
`deploy.victoriametrics.enable` turns [the cluster node](../../4-implementation/k8s/node.md)
on with it. Enabling either enables both; to run one alone, set it directly with
`deploy.victoriametrics.enable` or `deploy.grafana.enable`.