package v2beta1
- Alphabetic
- Public
- All
Type Members
-
case class
ContainerResourceMetricSource(container: String, name: String, targetAverageUtilization: Optional[Int] = Optional.Absent, targetAverageValue: Optional[Quantity] = Optional.Absent) extends Product with Serializable
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.
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.
- container
container is the name of the container in the pods of the scaling target
- name
name is the name of the resource in question.
- targetAverageUtilization
targetAverageUtilization 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.
- class ContainerResourceMetricSourceFields extends AnyRef
-
case class
ContainerResourceMetricStatus(container: String, currentAverageUtilization: Optional[Int] = Optional.Absent, currentAverageValue: Quantity, name: String) extends Product with Serializable
ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g.
ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). 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.
- container
container is the name of the container in the pods of the scaling target
- currentAverageUtilization
currentAverageUtilization is the current 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. It will only be present if
targetAverageValue
was set in the corresponding metric specification.- name
name is the name of the resource in question.
- class ContainerResourceMetricStatusFields extends AnyRef
-
case class
CrossVersionObjectReference(apiVersion: Optional[String] = Optional.Absent, kind: String, name: String) extends Product with Serializable
CrossVersionObjectReference contains enough information to let you identify the referred resource.
CrossVersionObjectReference contains enough information to let you identify the referred resource.
- apiVersion
API version of the referent
- kind
Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
- name
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
- class CrossVersionObjectReferenceFields extends AnyRef
-
case class
ExternalMetricSource(metricName: String, metricSelector: Optional[LabelSelector] = Optional.Absent, targetAverageValue: Optional[Quantity] = Optional.Absent, targetValue: Optional[Quantity] = Optional.Absent) extends Product with Serializable
ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
- metricName
metricName is the name of the metric in question.
- class ExternalMetricSourceFields extends AnyRef
-
case class
ExternalMetricStatus(currentAverageValue: Optional[Quantity] = Optional.Absent, currentValue: Quantity, metricName: String, metricSelector: Optional[LabelSelector] = Optional.Absent) extends Product with Serializable
ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
- metricName
metricName is the name of a metric used for autoscaling in metric system.
- class ExternalMetricStatusFields extends AnyRef
-
case class
HorizontalPodAutoscaler(metadata: Optional[ObjectMeta] = Optional.Absent, spec: Optional[HorizontalPodAutoscalerSpec] = Optional.Absent, status: Optional[HorizontalPodAutoscalerStatus] = Optional.Absent) extends Product with Serializable
HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.
-
case class
HorizontalPodAutoscalerCondition(lastTransitionTime: Optional[Time] = Optional.Absent, message: Optional[String] = Optional.Absent, reason: Optional[String] = Optional.Absent, status: String, type: String) extends Product with Serializable
HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
- message
message is a human-readable explanation containing details about the transition
- reason
reason is the reason for the condition's last transition.
- status
status is the status of the condition (True, False, Unknown)
- type
type describes the current condition
- class HorizontalPodAutoscalerConditionFields extends AnyRef
- class HorizontalPodAutoscalerFields extends AnyRef
-
case class
HorizontalPodAutoscalerSpec(maxReplicas: Int, metrics: Optional[Vector[MetricSpec]] = Optional.Absent, minReplicas: Optional[Int] = Optional.Absent, scaleTargetRef: CrossVersionObjectReference) extends Product with Serializable
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
- maxReplicas
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.
- metrics
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.
- minReplicas
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.
- class HorizontalPodAutoscalerSpecFields extends AnyRef
-
case class
HorizontalPodAutoscalerStatus(conditions: Optional[Vector[HorizontalPodAutoscalerCondition]] = Optional.Absent, currentMetrics: Optional[Vector[MetricStatus]] = Optional.Absent, currentReplicas: Int, desiredReplicas: Int, lastScaleTime: Optional[Time] = Optional.Absent, observedGeneration: Optional[Long] = Optional.Absent) extends Product with Serializable
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
- conditions
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
- currentMetrics
currentMetrics is the last read state of the metrics used by this autoscaler.
- currentReplicas
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
- desiredReplicas
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
- observedGeneration
observedGeneration is the most recent generation observed by this autoscaler.
- class HorizontalPodAutoscalerStatusFields extends AnyRef
-
case class
MetricSpec(containerResource: Optional[ContainerResourceMetricSource] = Optional.Absent, external: Optional[ExternalMetricSource] = Optional.Absent, object: Optional[ObjectMetricSource] = Optional.Absent, pods: Optional[PodsMetricSource] = Optional.Absent, resource: Optional[ResourceMetricSource] = Optional.Absent, type: String) extends Product with Serializable
MetricSpec specifies how to scale based on a single metric (only
type
and one other matching field should be set at once).MetricSpec specifies how to scale based on a single metric (only
type
and one other matching field should be set at once).- type
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
- class MetricSpecFields extends AnyRef
-
case class
MetricStatus(containerResource: Optional[ContainerResourceMetricStatus] = Optional.Absent, external: Optional[ExternalMetricStatus] = Optional.Absent, object: Optional[ObjectMetricStatus] = Optional.Absent, pods: Optional[PodsMetricStatus] = Optional.Absent, resource: Optional[ResourceMetricStatus] = Optional.Absent, type: String) extends Product with Serializable
MetricStatus describes the last-read state of a single metric.
MetricStatus describes the last-read state of a single metric.
- type
type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
- class MetricStatusFields extends AnyRef
-
case class
ObjectMetricSource(averageValue: Optional[Quantity] = Optional.Absent, metricName: String, selector: Optional[LabelSelector] = Optional.Absent, target: CrossVersionObjectReference, targetValue: Quantity) extends Product with Serializable
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
- metricName
metricName is the name of the metric in question.
- class ObjectMetricSourceFields extends AnyRef
-
case class
ObjectMetricStatus(averageValue: Optional[Quantity] = Optional.Absent, currentValue: Quantity, metricName: String, selector: Optional[LabelSelector] = Optional.Absent, target: CrossVersionObjectReference) extends Product with Serializable
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
- metricName
metricName is the name of the metric in question.
- class ObjectMetricStatusFields extends AnyRef
-
case class
PodsMetricSource(metricName: String, selector: Optional[LabelSelector] = Optional.Absent, targetAverageValue: Quantity) extends Product with Serializable
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
- metricName
metricName is the name of the metric in question
- class PodsMetricSourceFields extends AnyRef
-
case class
PodsMetricStatus(currentAverageValue: Quantity, metricName: String, selector: Optional[LabelSelector] = Optional.Absent) extends Product with Serializable
PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
- metricName
metricName is the name of the metric in question
- class PodsMetricStatusFields extends AnyRef
-
case class
ResourceMetricSource(name: String, targetAverageUtilization: Optional[Int] = Optional.Absent, targetAverageValue: Optional[Quantity] = Optional.Absent) extends Product with Serializable
ResourceMetricSource 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.
ResourceMetricSource 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.
- name
name is the name of the resource in question.
- targetAverageUtilization
targetAverageUtilization 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.
- class ResourceMetricSourceFields extends AnyRef
-
case class
ResourceMetricStatus(currentAverageUtilization: Optional[Int] = Optional.Absent, currentAverageValue: Quantity, name: String) extends Product with Serializable
ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g.
ResourceMetricStatus indicates the current value of 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). 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.
- currentAverageUtilization
currentAverageUtilization is the current 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. It will only be present if
targetAverageValue
was set in the corresponding metric specification.- name
name is the name of the resource in question.
- class ResourceMetricStatusFields extends AnyRef
Value Members
- object ContainerResourceMetricSource extends ContainerResourceMetricSourceFields with Serializable
- object ContainerResourceMetricStatus extends ContainerResourceMetricStatusFields with Serializable
- object CrossVersionObjectReference extends CrossVersionObjectReferenceFields with Serializable
- object ExternalMetricSource extends ExternalMetricSourceFields with Serializable
- object ExternalMetricStatus extends ExternalMetricStatusFields with Serializable
- object HorizontalPodAutoscaler extends HorizontalPodAutoscalerFields with Serializable
- object HorizontalPodAutoscalerCondition extends HorizontalPodAutoscalerConditionFields with Serializable
- object HorizontalPodAutoscalerSpec extends HorizontalPodAutoscalerSpecFields with Serializable
- object HorizontalPodAutoscalerStatus extends HorizontalPodAutoscalerStatusFields with Serializable
- object MetricSpec extends MetricSpecFields with Serializable
- object MetricStatus extends MetricStatusFields with Serializable
- object ObjectMetricSource extends ObjectMetricSourceFields with Serializable
- object ObjectMetricStatus extends ObjectMetricStatusFields with Serializable
- object PodsMetricSource extends PodsMetricSourceFields with Serializable
- object PodsMetricStatus extends PodsMetricStatusFields with Serializable
- object ResourceMetricSource extends ResourceMetricSourceFields with Serializable
- object ResourceMetricStatus extends ResourceMetricStatusFields with Serializable