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:
parent
26ef09b0d7
commit
9f62e71dae
1 changed files with 1938 additions and 1953 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue