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 maia
commit a542498510

View file

@ -102,9 +102,12 @@ credential directory.
(systemd's `K`, `M`, `G` and `T` are Kubernetes' `Ki`, `Mi`, `Gi` and `Ti`; a
byte count passes unchanged; `infinity` sets none) and its `CPUQuota`, a
percent of one core, becomes the cpu limit in millicores (`400%` is
`4000m`). The renderer sets no `requests`, so Kubernetes reserves the limits
on the node. A value in another form fails evaluation. `TasksMax` has no pod
field, so the renderer drops it. The unit's sandbox settings
`4000m`). Both are caps, not reservations, so the renderer sets the requests
too: Kubernetes would otherwise set each to its limit and reserve the whole
cap on the node. The memory request is the unit's `MemoryMin`, else its
`MemoryLow`, else `0`, and the cpu request is `0`, so the pod is Burstable. A
value in another form fails evaluation. `TasksMax` has no pod field, so the
renderer drops it. The unit's sandbox settings
(`MemoryDenyWriteExecute`, `SystemCallFilter`, `PrivateUsers` and the rest)
stay on the host: the pod has the security shape above and no other.
- **Probes:** a service with an opt-in health listener gets its variable set to