Watch
0
0
Fork
You've already forked hyperhive
0

docs: the queue in the cluster

This commit is contained in:
atlas 2026-11-22 17:31:52 +01:00 • committed by maia
commit 777a0fe53c

View file

@ -123,6 +123,15 @@ credential directory.
renewal container that issue its leaf into an `emptyDir`
([runtime](runtime.md#the-controller)). The image of those containers is part
of `system.build.k8sImages`.
- **More than the daemon:** a service whose pod holds more than its daemon
(the queue, whose server and exporter run beside the responder) names a
function in its entry that adds containers, init containers, volumes, host
aliases, pod settings, objects and images. A service named differently from
its daemon (`swarm-nats`, whose daemon is `swarm-nats-auth`) names the
daemon's binary, and the credential directory its unit loads from follows
the daemon's name. The pod runs under one ServiceAccount, so a queue that
holds two store roles has both bound to it
([runtime](runtime.md#the-queue)).
- **Config checksum:** a Deployment whose service has a ConfigMap (`etcFiles`)
carries `checksum/etc` on its pod template, the hash of that ConfigMap's
content, so a changed file rolls the pod.
@ -149,19 +158,20 @@ environment, so the pod differs from the unit in these places:
account and this audience only.
- **Environment:** the pod sets neither `BAO_CLIENT_CERT` nor
`BAO_CLIENT_KEY`, and the credentials they named aren't in the pod's
Secret. `BAO_AUTH=jwt`, `BAO_JWT_FILE`, `BAO_JWT_ROLE` (the service's name)
and `BAO_JWT_MOUNT` (`jwt-k8s`) take their place, and `BAO_ADDR` names the
store's own name at the port of the listener that asks for no client
certificate (`deploy.bao.podListenerPort`). `BAO_CACERT` stays.
Secret. `BAO_AUTH=jwt`, `BAO_JWT_FILE`, `BAO_JWT_ROLE` (the service's name,
or the role its entry names) and `BAO_JWT_MOUNT` (`jwt-k8s`) take their
place, and `BAO_ADDR` names the store's own name at the port of the listener
that asks for no client certificate (`deploy.bao.podListenerPort`).
`BAO_CACERT` stays.
[The cluster node](node.md#logging-in-to-the-secret-store) describes the
store's side.
## Not covered yet
- The pods reach the swarm's host-run services (store, queue, identity
provider) by the same names as the units do. The node's CoreDNS answers those
names with the hive bridge's address.
- The pods reach the swarm's host-run services (store, identity provider, and
the queue where it runs on the host) 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. The gateway dials the TCP listener instead.