File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
content/en/docs/tasks/run-application Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -263,13 +263,23 @@ status:
263
263
Notice that the ` targetCPUUtilizationPercentage` field has been replaced with an array called `metrics`.
264
264
The CPU utilization metric is a *resource metric*, since it is represented as a percentage of a resource
265
265
specified on pod containers. Notice that you can specify other resource metrics besides CPU. By default,
266
- the only other supported resource metric is memory. These resources do not change names from cluster
266
+ the only other supported resource metric is ` memory` . These resources do not change names from cluster
267
267
to cluster, and should always be available, as long as the `metrics.k8s.io` API is available.
268
268
269
269
You can also specify resource metrics in terms of direct values, instead of as percentages of the
270
270
requested value, by using a `target.type` of `AverageValue` instead of `Utilization`, and
271
271
setting the corresponding `target.averageValue` field instead of the `target.averageUtilization`.
272
272
273
+ ```
274
+ metrics:
275
+ - type: Resource
276
+ resource:
277
+ name: memory
278
+ target:
279
+ type: AverageValue
280
+ averageValue: 500Mi
281
+ ```
282
+
273
283
There are two other types of metrics, both of which are considered *custom metrics*: pod metrics and
274
284
object metrics. These metrics may have names which are cluster specific, and require a more
275
285
advanced cluster monitoring setup.
You can’t perform that action at this time.
0 commit comments