Add MemoryReservationPolicy to kubeletconfig for MemoryQoS feature

Add MemoryReservationPolicy (None/HardReservation) controls memory.min. This allows
independently of memory.min protection, providing operators more
granular control over memoryQoS behavior.
Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
Qi Wang
2026-03-09 19:57:43 -04:00
parent 9c7e57bb7c
commit f1ccd2d8aa
28 changed files with 251 additions and 30 deletions

View File

@@ -71891,6 +71891,13 @@ func schema_k8sio_kubelet_config_v1beta1_KubeletConfiguration(ref common.Referen
Format: "double",
},
},
"memoryReservationPolicy": {
SchemaProps: spec.SchemaProps{
Description: "MemoryReservationPolicy controls how the kubelet applies cgroup v2 memory protection. \"None\" (default): The kubelet does not set memory.min for containers and pods, ensuring no hard memory is locked by the kernel. \"HardReservation\": The kubelet sets the cgroup v2 memory.min value based on pod and container memory requests. This ensures the requested memory is never reclaimed by the kernel, but may trigger an OOM if the reservation cannot be satisfied. See https://kep.k8s.io/2570 for more details. Default: None",
Type: []string{"string"},
Format: "",
},
},
"registerWithTaints": {
SchemaProps: spec.SchemaProps{
Description: "registerWithTaints are an array of taints to add to a node object when the kubelet registers itself. This only takes effect when registerNode is true and upon the initial registration of the node. Default: nil",