Watch
0
0
Fork
You've already forked hyperhive
0

k8s: a pod's requests are explicit, so its limits cap and reserve nothing

This commit is contained in:
atlas 2026-11-21 23:42:12 +01:00 • committed by mara
commit 49406498a7

View file

@ -93,9 +93,9 @@ store path the container reads, and the volume doesn't.
The pod takes the unit's `MemoryMax` and `CPUQuota` as its container's limits
([manifests](manifests.md#pods)), so `swarm-stt` keeps its 3 GiB and four-core
ceilings. The pod has no `requests`, so Kubernetes reserves those limits on the
node: the node needs that memory and those cores free to schedule the pod.
`TasksMax` has no pod counterpart, so the renderer drops it. The systemd sandbox
ceilings. The pod requests nothing (memory `0`, cpu `0`, as the unit sets no
`MemoryMin` or `MemoryLow`), so the node reserves nothing for it and the pod is
Burstable. `TasksMax` has no pod counterpart, so the renderer drops it. The systemd sandbox
(`MemoryDenyWriteExecute`, `SystemCallFilter`, `PrivateUsers`, the read-only
`ProtectSystem` and the rest) stays on the host. The pod is a non-root user with
a read-only root filesystem, every capability dropped, the runtime's default
@ -114,4 +114,4 @@ a queue. It switches both from the host to the cluster and back, checks each
step for exactly one copy of each, and asserts that the router's pod logs in,
routes an event, and exits 0 when deleted. For `swarm-stt` it asserts that the
pod is Ready, logged in to the store with its ServiceAccount token, carries the
unit's limits, and has its cache volume bound.
unit's limits, requests nothing and is Burstable, and has its cache volume bound.