nodepool/releasenotes/notes/kubernetes-storage-limit-c87497ac74a10d96.yaml
Benjamin Schanzel 6c9c219eb0
Add config option to limit ephemeral storage on K8s Pod labels
This adds config options for limiting the amount of ephemeral storage
allocatable by a container of a K8s Pod-type label.
This optional config translates to K8s settings

* spec.containers[].resources.limits.ephemeral-storage
* spec.containers[].resources.requests.ephemeral-storage

This is to provide a mechanism that prevents Pods from filling up their
hosts storage and thereby interfering with or breaking other workloads
on the same host (esp. on shared clusters).

Like for cpu and memory limits, a pool-scoped default can also be
specified.

Change-Id: I23e90ae53cc2b2eb0e51cc9e3dc5802c86cc0ac9
2022-10-13 13:56:43 +02:00

16 lines
596 B
YAML

---
features:
- |
A new configuration option for K8s Pod type labels was added to limit the
amount of ephemeral storage allocatable in a container (cf. `K8s Local
ephemeral storage resource documentation`
<https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#local-ephemeral-storage`__)
This limit can be set via the integer value of
:attr:`providers.[kubernetes].pools.labels.storage`
and is treated as Megabytes. Also, a pool-scoped default value can be
specified via
:attr:`providers.[kubernetes].pools.default-label-storage`