run the log store and its auth responders as pods
swarm-logs-auth and swarm-metrics-auth take --listen for a TCP address beside --socket. The log store is a Deployment on a static local volume that is its old container's data directory, behind a ClusterIP Service the gateway dials by name. Its two auth_request responders are one unpinned pod with a jwt role. The renderer gains a plain HTTP listener, a probe path, fsGroupChangePolicy, and one policy for a pod with both a listener and egress.
This commit is contained in:
parent
279f97e5ca
commit
71b2e9310c
1 changed files with 1385 additions and 746 deletions
|
|
@ -133,7 +133,7 @@ let
|
|||
|
||||
# The `auth_request` responder for Grafana's bearer (`swarm-metrics-auth`).
|
||||
# Its socket's directory holds that socket alone and is traverse-only for
|
||||
# others, the shape `swarm-logs-auth` in ./swarm-victorialogs.nix has.
|
||||
# others.
|
||||
metricsAuthUnit = "swarm-metrics-auth";
|
||||
metricsAuthSocket = "/run/${metricsAuthUnit}/auth.sock";
|
||||
metricsAuthCredential = id: "/run/credentials/${metricsAuthUnit}.service/${id}";
|
||||
|
|
@ -152,8 +152,7 @@ let
|
|||
|
||||
# The agents' check on the read API: a `swarm-logs-auth` binary, logging in
|
||||
# under this host's `swarm-metrics-auth` leaf, whose grant covers every
|
||||
# agent's queue secret. The log store's host runs `swarm-metrics-auth` under
|
||||
# its `swarm-logs-auth` leaf the same way.
|
||||
# agent's queue secret.
|
||||
agentAuthUnit = "swarm-metrics-agent-auth";
|
||||
agentAuthSocket = "/run/${agentAuthUnit}/auth.sock";
|
||||
agentAuthCredential = id: "/run/credentials/${agentAuthUnit}.service/${id}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue