io.k8s.api.autoscaling.v2.ContainerResourceMetricSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.autoscaling.v2;
import java.lang.String;
/**
* 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.
*/
public class ContainerResourceMetricSource {
public String container;
public String name;
public MetricTarget target;
/**
* container is the name of the container in the pods of the scaling target
*/
public ContainerResourceMetricSource container(String container) {
this.container = container;
return this;
}
/**
* name is the name of the resource in question.
*/
public ContainerResourceMetricSource name(String name) {
this.name = name;
return this;
}
public ContainerResourceMetricSource target(MetricTarget target) {
this.target = target;
return this;
}
public static ContainerResourceMetricSource containerResourceMetricSource() {
return new ContainerResourceMetricSource();
}
}