ContainerResourceMetricSource
io.k8s.api.autoscaling.v2.ContainerResourceMetricSource
source ↗
ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
containerstring requiredcontainer is the name of the container in the pods of the scaling targetnamestring requiredname is the name of the resource in question.targetMetricTarget requiredtarget specifies the target value for the given metric
averageUtilizationinteger (int32)averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source typeaverageValueQuantityaverageValue is the target value of the average of the metric across all relevant pods (as a quantity)typestring requiredtype represents whether the metric type is Utilization, Value, or AverageValuevalueQuantityvalue is the target value of the metric (as a quantity).