run the metrics store and its auth responders as pods
This commit is contained in:
parent
3f71739852
commit
07a004fad1
2 changed files with 1308 additions and 1031 deletions
|
|
@ -86,24 +86,23 @@ and the store's granter fetches the bao UI's.
|
|||
Three services read **every agent's queue secret**
|
||||
(`swarm/agents/<agent>/queue`), each under a leaf of its own whose policy
|
||||
reaches that one leaf per agent: the queue's auth callout (`swarm-nats-auth`),
|
||||
the log store's agent check (`swarm-logs-auth`, a pod on the log store's host), and
|
||||
the metrics store's (`swarm-metrics-agent-auth`, under the `swarm-metrics-auth`
|
||||
leaf on the metrics store's host). Any one compromised can present any agent's
|
||||
the log store's agent check (`swarm-logs-auth`, on the log store's host), and
|
||||
the metrics store's (`swarm-metrics-auth`, on the metrics store's host). Any one compromised can present any agent's
|
||||
queue secret, at the queue and at both stores' read routes alike. The two store checks also read the
|
||||
agent's `swarm/agents/<agent>/observability` leaf, which only the controller writes, and let
|
||||
the agent through only with the `logs` or `metrics` permission it names.
|
||||
|
||||
### The log store takes writes and reads from the node
|
||||
### The log and metrics stores take writes and reads from the node
|
||||
|
||||
VictoriaLogs checks no credential: the gateway's vhost does. The store
|
||||
listens on its pod's address behind a ClusterIP Service, and the Service's
|
||||
NetworkPolicy admits traffic from the node and from nothing else. A process on
|
||||
the log store's host, whatever its user, can therefore read every log line and
|
||||
write records into the store without a bearer. An agent can't: its traffic
|
||||
doesn't come from the node, and the hive's egress rules don't forward it to the
|
||||
pod network. Treat the host that runs the log store as trusted for logs. The
|
||||
metrics store still listens on a unix socket that only the gateway's group can
|
||||
open.
|
||||
VictoriaLogs and VictoriaMetrics check no credential: the gateway's vhost does.
|
||||
Each store listens on its pod's address behind a ClusterIP Service, and the
|
||||
Service's NetworkPolicy admits traffic from the node and from nothing else. A
|
||||
process on the host that runs a store, whatever its user, can therefore read
|
||||
every record in it and write records into it without a bearer. The metrics store
|
||||
also serves its import and admin routes on that listener, so the same process
|
||||
can delete series from it. An agent can't: its traffic doesn't come from the
|
||||
node, and the hive's egress rules don't forward it to the pod network. Treat the
|
||||
host that runs the stores as trusted for logs and metrics.
|
||||
|
||||
### Per-hive credentials live under the hive kind
|
||||
|
||||
|
|
|
|||
|
|
@ -134,9 +134,10 @@ container, its sockets, secrets and metrics:
|
|||
### Metrics (VictoriaMetrics + Grafana)
|
||||
|
||||
The swarm's telemetry lands in one VictoriaMetrics, and one Grafana reads it,
|
||||
at `metrics.<swarm-domain>` and `grafana.<swarm-domain>`. They sit in two
|
||||
containers so you can restart or break Grafana without losing the time-series
|
||||
database. Enabling either enables both; to run one alone, set it directly with
|
||||
at `metrics.<swarm-domain>` and `grafana.<swarm-domain>`. They run apart so you
|
||||
can restart or break Grafana without losing the time-series database.
|
||||
`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`.
|
||||
|
||||
Log in to Grafana with your swarm SSO account. Grafana provisions its
|
||||
|
|
|
|||
Loading…
Reference in a new issue