You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See also this [example of scaling a Deployment](/docs/concepts/workloads/controllers/deployment/#scaling-a-deployment) in the `Deployment` documentation.
34
34
35
35
### Resizing workloads in-place
36
36
37
-
Instead of scaling the number of Replicas of a workload, you can also adjust the provided resources
38
-
of each Replica, in-place. You do this by patching the entries in one or both of the following
39
-
fields of the `Pod` or [PodTemplate](/docs/concepts/workloads/pods/#pod-templates) you want to resize:
37
+
Instead of scaling the number of replicas of a workload, you can also adjust the provided resources
38
+
for a particular pod or set of pods, in-place. You do this by patching the entries in one or both of the following
39
+
fields of the `Pod` or [pod template](/docs/concepts/workloads/pods/#pod-templates) you want to resize:
40
40
41
41
-`spec.containers[*].resources.requests`
42
42
-`spec.containers[*].resources.limits`
43
43
44
-
{{< caution >}}
44
+
{{< note >}}
45
45
Resizing a workload in-place **without** restarting the Pods or its Containers requires Kubernetes version 1.27 or later.
46
-
{{< /caution >}}
46
+
{{< /note >}}
47
47
48
48
See also this task about [resizing CPU and memory resources](/docs/tasks/configure-pod-container/resize-container-resources) assigned to Containers.
49
49
@@ -66,10 +66,10 @@ The first option is referred to as _horizontal scaling_, while the second is ref
66
66
In Kubernetes, you can automatically scale a workload horizontally using a _HorizontalPodAutoscaler_ (HPA).
67
67
68
68
It is implemented as a Kubernetes API resource and a {{< glossary_tooltip text="controller" term_id="controller" >}}
69
-
and periodically adjusts the number of {{< glossary_tooltip text="Replicas" term_id="replica" >}}
69
+
and periodically adjusts the number of {{< glossary_tooltip text="replicas" term_id="replica" >}}
70
70
in a workload to match observed resource utilization such as CPU or memory usage.
71
71
72
-
There is a [walkthrough example](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough) of configuring a HorizontalPodAutoscaler for a Deployment.
72
+
There is a [walkthrough tutorial](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough) of configuring a HorizontalPodAutoscaler for a Deployment.
0 commit comments