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
* If your command contains multiple lines and uses callout annotations, you must comment out the callout(s) in the codeblock, as shown in the following example:
1051
+
+
1052
+
....
1053
+
To scale based on the percent of CPU utilization, create a `HorizontalPodAutoscaler` object for an existing object:
1054
+
1055
+
[source,terminal]
1056
+
----
1057
+
$ oc autoscale <object_type>/<name> \// <1>
1058
+
--min <number> \// <2>
1059
+
--max <number> \// <3>
1060
+
--cpu-percent=<percent> <4>
1061
+
----
1062
+
<1> Specify the type and name of the object to autoscale.
1063
+
<2> Optional: Specify the minimum number of replicas when scaling down.
1064
+
<3> Specify the maximum number of replicas when scaling up.
1065
+
<4> Specify the target average CPU utilization over all the pods, represented as a percent of requested CPU.
1066
+
....
1067
+
1050
1068
* Separate a command and its related example output into individual code blocks.
1051
1069
This allows the command to be easily copied using the button on
0 commit comments