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
|
|
@ -168,6 +168,7 @@ let
|
|||
"swarm-controller"
|
||||
"victorialogs"
|
||||
"victoriametrics"
|
||||
"grafana"
|
||||
];
|
||||
enabledServices = lib.filter (name: deployCfg.${name}.enable) swarmServices;
|
||||
|
||||
|
|
@ -179,6 +180,7 @@ let
|
|||
ci-metrics
|
||||
victorialogs
|
||||
victoriametrics
|
||||
grafana
|
||||
;
|
||||
};
|
||||
in
|
||||
|
|
@ -320,7 +322,7 @@ in
|
|||
none of those pods.
|
||||
|
||||
- `hyperhive.darkest.space/state-<service>` for each service whose data the
|
||||
cluster keeps: `nats`, `ci-metrics`, `victorialogs` and `victoriametrics`, each when enabled. A volume's `nodeAffinity` and the pod's `nodeSelector` name it.
|
||||
cluster keeps: `nats`, `ci-metrics`, `victorialogs`, `victoriametrics` and `grafana`, each when enabled. A volume's `nodeAffinity` and the pod's `nodeSelector` name it.
|
||||
- `hyperhive.darkest.space/entry`: the node the hosts' DNS points at.
|
||||
- `svccontroller.k3s.cattle.io/enablelb`: with it on any node, the
|
||||
service load balancer binds a published port on the labelled nodes
|
||||
|
|
|
|||
Loading…
Reference in a new issue