Skip to content

Commit b4175eb

Browse files
committed
Documentation update for pod level resources in 1.34
1 parent 8255f3f commit b4175eb

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

content/en/docs/concepts/configuration/manage-resources-containers.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,24 @@ resource requests/limits of that type for each container in the Pod.
113113

114114
{{< feature-state feature_gate_name="PodLevelResources" >}}
115115

116-
Starting in Kubernetes 1.32, you can also specify resource requests and limits at
116+
Provided your cluster has the `PodLevelResources`
117+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) enabled,
118+
you can specify resource requests and limits at
117119
the Pod level. At the Pod level, Kubernetes {{< skew currentVersion >}}
118120
only supports resource requests or limits for specific resource types: `cpu` and /
119-
or `memory`. This feature is currently in alpha and with the feature enabled,
120-
Kubernetes allows you to declare an overall resource budget for the Pod, which is
121-
especially helpful when dealing with a large number of containers where it can be
122-
difficult to accurately gauge individual resource needs. Additionally, it enables
123-
containers within a Pod to share idle resources with each other, improving resource
124-
utilization.
121+
or `memory` and / or `hugepages`. With this feature, Kubernetes allows you to declare an overall resource
122+
budget for the Pod, which is especially helpful when dealing with a large number of
123+
containers where it can be difficult to accurately gauge individual resource needs.
124+
Additionally, it enables containers within a Pod to share idle resources with each
125+
other, improving resource utilization.
125126

126127
For a Pod, you can specify resource limits and requests for CPU and memory by including the following:
127128
* `spec.resources.limits.cpu`
128129
* `spec.resources.limits.memory`
130+
* `spec.resources.limits.hugepages-<size>`
129131
* `spec.resources.requests.cpu`
130132
* `spec.resources.requests.memory`
133+
* `spec.resources.requests.hugepages-<size>`
131134

132135
## Resource units in Kubernetes
133136

content/en/docs/reference/command-line-tools-reference/feature-gates/PodLevelResources.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.32"
12+
toVersion: "1.33"
13+
- stage: beta
14+
defaultValue: true
15+
fromVersion: "1.34"
1216
---
1317
Enable _Pod level resources_: the ability to specify resource requests and limits
1418
at the Pod level, rather than only for specific containers.

content/en/docs/tasks/configure-pod-container/assign-pod-level-resources.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Assign Pod-level CPU and memory resources
33
content_type: task
44
weight: 30
5-
min-kubernetes-server-version: 1.32
5+
min-kubernetes-server-version: 1.34
66
---
77

88

@@ -43,6 +43,23 @@ The `PodLevelResources` [feature
4343
gate](/docs/reference/command-line-tools-reference/feature-gates/) must be enabled
4444
for your control plane and for all nodes in your cluster.
4545

46+
## Limitations
47+
48+
For Kubernetes {{< skew currentVersion >}}, resizing pod-level resources has the
49+
following limitations:
50+
51+
* **Resource Types:** Only CPU, memory and hugepages resources can be specified at pod-level.
52+
* **Operating System:** Pod-level resources are not supported for Windows
53+
pods.
54+
* **Resource Managers:** The Topology Manager, Memory Manager and CPU Manager do not
55+
align pods and containers based on pod-level resources as these resource managers
56+
don't currently support pod-level resources.
57+
* **[In-Place
58+
Resize](https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/):**
59+
In-place resize of pod-level resources is not supported. Modifying the pod-level resource
60+
limits or requests on a pod result in a field.Forbidden error. The error message
61+
explicitly states, "pods with pod-level resources cannot be resized."
62+
4663
<!-- steps -->
4764

4865
## Create a namespace

0 commit comments

Comments
 (0)