k8s: a pod's requests are explicit, so its limits cap and reserve nothing
This commit is contained in:
parent
aa9b7d80a0
commit
e1c1bad51a
1 changed files with 114 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue