Watch
0
0
Fork
You've already forked hyperhive
0

k8s: pod logs and metrics reach the hive collector

This commit is contained in:
atlas 2026-11-21 14:01:39 +01:00 • committed by mara
commit dbcc47573e

View file

@ -35,9 +35,10 @@ The renderer reads the service's evaluated unit, not a copy of its settings:
- **Environment:** the unit's `environment`, including what other modules
merge into it, minus `PATH`. A systemd `%d` becomes the credential
directory it stands for. The renderer fails if the unit's `path` holds
anything beyond the NixOS default tools, because the image doesn't carry
them.
directory it stands for. On a host with a hive collector, the OTLP endpoint
variables point at it ([Pod logs and metrics](telemetry.md)) instead. The
renderer fails if the unit's `path` holds anything beyond the NixOS default
tools, because the image doesn't carry them.
- **Files:** the pod mounts each file the unit names at the same path,
so the environment carries over unchanged:
- credentials at `/run/credentials/<service>.service/<id>`, from the Secret
@ -98,11 +99,8 @@ object.
## Not covered yet
- The pods reach the swarm's host-run services (store, queue, identity
provider) by the same names as the units do. Those names don't resolve to
the host from inside a cluster yet.
- `OTEL_EXPORTER_OTLP_ENDPOINT` keeps the unit's value. For
`swarm-notify-router` that's its container's local log and metrics
forwarder, which a pod doesn't have.
provider) by the same names as the units do. The node's CoreDNS answers those
names with the hive bridge's address.
- `swarm-controller`'s socket lives in an `emptyDir`, so only the pod can
reach it.