Skip to content

Commit a2d0b70

Browse files
authored
Merge pull request #45350 from dshebib/podResourceInPlaceExampleFix
Add feature gate to pod vertical resource scaling example
2 parents 34ac45c + e64910f commit a2d0b70

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ of a running pod without restarting the pod or its containers. A Kubernetes node
1818
allocates resources for a pod based on its `requests`, and restricts the pod's
1919
resource usage based on the `limits` specified in the pod's containers.
2020

21+
Changing the resource allocation for a running Pod requires the
22+
`InPlacePodVerticalScaling` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
23+
to be enabled. The alternative is to delete the Pod and let the
24+
[workload controller](/docs/concepts/workloads/controllers/) make a replacement Pod
25+
that has a different resource requirement.
26+
2127
For in-place resize of pod resources:
2228
- Container's resource `requests` and `limits` are _mutable_ for CPU
2329
and memory resources.
@@ -45,6 +51,8 @@ For in-place resize of pod resources:
4551

4652
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
4753

54+
The `InPlacePodVerticalScaling` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) must be enabled
55+
for your control plane and for all nodes in your cluster.
4856

4957
## Container Resize Policies
5058

@@ -170,8 +178,8 @@ spec:
170178

171179
## Updating the pod's resources
172180

173-
Let's say the CPU requirements have increased, and 0.8 CPU is now desired. This
174-
is typically determined, and may be programmatically applied, by an entity such as
181+
Let's say the CPU requirements have increased, and 0.8 CPU is now desired. This may
182+
be specified manually, or determined and programmatically applied by an entity such as
175183
[VerticalPodAutoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#readme) (VPA).
176184

177185
{{< note >}}

0 commit comments

Comments
 (0)