Documentation
¶
Index ¶
- Variables
- type ContainerResourceMetricSource
- func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerResourceMetricSource) GetContainer() string
- func (x *ContainerResourceMetricSource) GetName() string
- func (x *ContainerResourceMetricSource) GetTargetAverageUtilization() int32
- func (x *ContainerResourceMetricSource) GetTargetAverageValue() *resource.Quantity
- func (*ContainerResourceMetricSource) ProtoMessage()
- func (x *ContainerResourceMetricSource) ProtoReflect() protoreflect.Message
- func (x *ContainerResourceMetricSource) Reset()
- func (x *ContainerResourceMetricSource) String() string
- type ContainerResourceMetricStatus
- func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerResourceMetricStatus) GetContainer() string
- func (x *ContainerResourceMetricStatus) GetCurrentAverageUtilization() int32
- func (x *ContainerResourceMetricStatus) GetCurrentAverageValue() *resource.Quantity
- func (x *ContainerResourceMetricStatus) GetName() string
- func (*ContainerResourceMetricStatus) ProtoMessage()
- func (x *ContainerResourceMetricStatus) ProtoReflect() protoreflect.Message
- func (x *ContainerResourceMetricStatus) Reset()
- func (x *ContainerResourceMetricStatus) String() string
- type CrossVersionObjectReference
- func (*CrossVersionObjectReference) Descriptor() ([]byte, []int)deprecated
- func (x *CrossVersionObjectReference) GetApiVersion() string
- func (x *CrossVersionObjectReference) GetKind() string
- func (x *CrossVersionObjectReference) GetName() string
- func (*CrossVersionObjectReference) ProtoMessage()
- func (x *CrossVersionObjectReference) ProtoReflect() protoreflect.Message
- func (x *CrossVersionObjectReference) Reset()
- func (x *CrossVersionObjectReference) String() string
- type ExternalMetricSource
- func (*ExternalMetricSource) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalMetricSource) GetMetricName() string
- func (x *ExternalMetricSource) GetMetricSelector() *v1.LabelSelector
- func (x *ExternalMetricSource) GetTargetAverageValue() *resource.Quantity
- func (x *ExternalMetricSource) GetTargetValue() *resource.Quantity
- func (*ExternalMetricSource) ProtoMessage()
- func (x *ExternalMetricSource) ProtoReflect() protoreflect.Message
- func (x *ExternalMetricSource) Reset()
- func (x *ExternalMetricSource) String() string
- type ExternalMetricStatus
- func (*ExternalMetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalMetricStatus) GetCurrentAverageValue() *resource.Quantity
- func (x *ExternalMetricStatus) GetCurrentValue() *resource.Quantity
- func (x *ExternalMetricStatus) GetMetricName() string
- func (x *ExternalMetricStatus) GetMetricSelector() *v1.LabelSelector
- func (*ExternalMetricStatus) ProtoMessage()
- func (x *ExternalMetricStatus) ProtoReflect() protoreflect.Message
- func (x *ExternalMetricStatus) Reset()
- func (x *ExternalMetricStatus) String() string
- type HorizontalPodAutoscaler
- func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int)deprecated
- func (x *HorizontalPodAutoscaler) GetMetadata() *v1.ObjectMeta
- func (x *HorizontalPodAutoscaler) GetSpec() *HorizontalPodAutoscalerSpec
- func (x *HorizontalPodAutoscaler) GetStatus() *HorizontalPodAutoscalerStatus
- func (*HorizontalPodAutoscaler) ProtoMessage()
- func (x *HorizontalPodAutoscaler) ProtoReflect() protoreflect.Message
- func (x *HorizontalPodAutoscaler) Reset()
- func (x *HorizontalPodAutoscaler) String() string
- type HorizontalPodAutoscalerCondition
- func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int)deprecated
- func (x *HorizontalPodAutoscalerCondition) GetLastTransitionTime() *v1.Time
- func (x *HorizontalPodAutoscalerCondition) GetMessage() string
- func (x *HorizontalPodAutoscalerCondition) GetReason() string
- func (x *HorizontalPodAutoscalerCondition) GetStatus() string
- func (x *HorizontalPodAutoscalerCondition) GetType() string
- func (*HorizontalPodAutoscalerCondition) ProtoMessage()
- func (x *HorizontalPodAutoscalerCondition) ProtoReflect() protoreflect.Message
- func (x *HorizontalPodAutoscalerCondition) Reset()
- func (x *HorizontalPodAutoscalerCondition) String() string
- type HorizontalPodAutoscalerList
- func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int)deprecated
- func (x *HorizontalPodAutoscalerList) GetItems() []*HorizontalPodAutoscaler
- func (x *HorizontalPodAutoscalerList) GetMetadata() *v1.ListMeta
- func (*HorizontalPodAutoscalerList) ProtoMessage()
- func (x *HorizontalPodAutoscalerList) ProtoReflect() protoreflect.Message
- func (x *HorizontalPodAutoscalerList) Reset()
- func (x *HorizontalPodAutoscalerList) String() string
- type HorizontalPodAutoscalerSpec
- func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int)deprecated
- func (x *HorizontalPodAutoscalerSpec) GetMaxReplicas() int32
- func (x *HorizontalPodAutoscalerSpec) GetMetrics() []*MetricSpec
- func (x *HorizontalPodAutoscalerSpec) GetMinReplicas() int32
- func (x *HorizontalPodAutoscalerSpec) GetScaleTargetRef() *CrossVersionObjectReference
- func (*HorizontalPodAutoscalerSpec) ProtoMessage()
- func (x *HorizontalPodAutoscalerSpec) ProtoReflect() protoreflect.Message
- func (x *HorizontalPodAutoscalerSpec) Reset()
- func (x *HorizontalPodAutoscalerSpec) String() string
- type HorizontalPodAutoscalerStatus
- func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int)deprecated
- func (x *HorizontalPodAutoscalerStatus) GetConditions() []*HorizontalPodAutoscalerCondition
- func (x *HorizontalPodAutoscalerStatus) GetCurrentMetrics() []*MetricStatus
- func (x *HorizontalPodAutoscalerStatus) GetCurrentReplicas() int32
- func (x *HorizontalPodAutoscalerStatus) GetDesiredReplicas() int32
- func (x *HorizontalPodAutoscalerStatus) GetLastScaleTime() *v1.Time
- func (x *HorizontalPodAutoscalerStatus) GetObservedGeneration() int64
- func (*HorizontalPodAutoscalerStatus) ProtoMessage()
- func (x *HorizontalPodAutoscalerStatus) ProtoReflect() protoreflect.Message
- func (x *HorizontalPodAutoscalerStatus) Reset()
- func (x *HorizontalPodAutoscalerStatus) String() string
- type MetricSpec
- func (*MetricSpec) Descriptor() ([]byte, []int)deprecated
- func (x *MetricSpec) GetContainerResource() *ContainerResourceMetricSource
- func (x *MetricSpec) GetExternal() *ExternalMetricSource
- func (x *MetricSpec) GetObject() *ObjectMetricSource
- func (x *MetricSpec) GetPods() *PodsMetricSource
- func (x *MetricSpec) GetResource() *ResourceMetricSource
- func (x *MetricSpec) GetType() string
- func (*MetricSpec) ProtoMessage()
- func (x *MetricSpec) ProtoReflect() protoreflect.Message
- func (x *MetricSpec) Reset()
- func (x *MetricSpec) String() string
- type MetricStatus
- func (*MetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MetricStatus) GetContainerResource() *ContainerResourceMetricStatus
- func (x *MetricStatus) GetExternal() *ExternalMetricStatus
- func (x *MetricStatus) GetObject() *ObjectMetricStatus
- func (x *MetricStatus) GetPods() *PodsMetricStatus
- func (x *MetricStatus) GetResource() *ResourceMetricStatus
- func (x *MetricStatus) GetType() string
- func (*MetricStatus) ProtoMessage()
- func (x *MetricStatus) ProtoReflect() protoreflect.Message
- func (x *MetricStatus) Reset()
- func (x *MetricStatus) String() string
- type ObjectMetricSource
- func (*ObjectMetricSource) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectMetricSource) GetAverageValue() *resource.Quantity
- func (x *ObjectMetricSource) GetMetricName() string
- func (x *ObjectMetricSource) GetSelector() *v1.LabelSelector
- func (x *ObjectMetricSource) GetTarget() *CrossVersionObjectReference
- func (x *ObjectMetricSource) GetTargetValue() *resource.Quantity
- func (*ObjectMetricSource) ProtoMessage()
- func (x *ObjectMetricSource) ProtoReflect() protoreflect.Message
- func (x *ObjectMetricSource) Reset()
- func (x *ObjectMetricSource) String() string
- type ObjectMetricStatus
- func (*ObjectMetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectMetricStatus) GetAverageValue() *resource.Quantity
- func (x *ObjectMetricStatus) GetCurrentValue() *resource.Quantity
- func (x *ObjectMetricStatus) GetMetricName() string
- func (x *ObjectMetricStatus) GetSelector() *v1.LabelSelector
- func (x *ObjectMetricStatus) GetTarget() *CrossVersionObjectReference
- func (*ObjectMetricStatus) ProtoMessage()
- func (x *ObjectMetricStatus) ProtoReflect() protoreflect.Message
- func (x *ObjectMetricStatus) Reset()
- func (x *ObjectMetricStatus) String() string
- type PodsMetricSource
- func (*PodsMetricSource) Descriptor() ([]byte, []int)deprecated
- func (x *PodsMetricSource) GetMetricName() string
- func (x *PodsMetricSource) GetSelector() *v1.LabelSelector
- func (x *PodsMetricSource) GetTargetAverageValue() *resource.Quantity
- func (*PodsMetricSource) ProtoMessage()
- func (x *PodsMetricSource) ProtoReflect() protoreflect.Message
- func (x *PodsMetricSource) Reset()
- func (x *PodsMetricSource) String() string
- type PodsMetricStatus
- func (*PodsMetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *PodsMetricStatus) GetCurrentAverageValue() *resource.Quantity
- func (x *PodsMetricStatus) GetMetricName() string
- func (x *PodsMetricStatus) GetSelector() *v1.LabelSelector
- func (*PodsMetricStatus) ProtoMessage()
- func (x *PodsMetricStatus) ProtoReflect() protoreflect.Message
- func (x *PodsMetricStatus) Reset()
- func (x *PodsMetricStatus) String() string
- type ResourceMetricSource
- func (*ResourceMetricSource) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricSource) GetName() string
- func (x *ResourceMetricSource) GetTargetAverageUtilization() int32
- func (x *ResourceMetricSource) GetTargetAverageValue() *resource.Quantity
- func (*ResourceMetricSource) ProtoMessage()
- func (x *ResourceMetricSource) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricSource) Reset()
- func (x *ResourceMetricSource) String() string
- type ResourceMetricStatus
- func (*ResourceMetricStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricStatus) GetCurrentAverageUtilization() int32
- func (x *ResourceMetricStatus) GetCurrentAverageValue() *resource.Quantity
- func (x *ResourceMetricStatus) GetName() string
- func (*ResourceMetricStatus) ProtoMessage()
- func (x *ResourceMetricStatus) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricStatus) Reset()
- func (x *ResourceMetricStatus) String() string
Constants ¶
This section is empty.
Variables ¶
var File_k8s_io_api_autoscaling_v2beta1_generated_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ContainerResourceMetricSource ¶ added in v1.2.4
type ContainerResourceMetricSource struct { // name is the name of the resource in question. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // 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. // +optional TargetAverageUtilization *int32 `protobuf:"varint,2,opt,name=targetAverageUtilization" json:"targetAverageUtilization,omitempty"` // targetAverageValue is the target value of the average of the // resource metric across all relevant pods, as a raw value (instead of as // a percentage of the request), similar to the "pods" metric source type. // +optional TargetAverageValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetAverageValue" json:"targetAverageValue,omitempty"` // container is the name of the container in the pods of the scaling target Container *string `protobuf:"bytes,4,opt,name=container" json:"container,omitempty"` // contains filtered or unexported fields }
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.
func (*ContainerResourceMetricSource) Descriptor
deprecated
added in
v1.2.4
func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int)
Deprecated: Use ContainerResourceMetricSource.ProtoReflect.Descriptor instead.
func (*ContainerResourceMetricSource) GetContainer ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) GetContainer() string
func (*ContainerResourceMetricSource) GetName ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) GetName() string
func (*ContainerResourceMetricSource) GetTargetAverageUtilization ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) GetTargetAverageUtilization() int32
func (*ContainerResourceMetricSource) GetTargetAverageValue ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) GetTargetAverageValue() *resource.Quantity
func (*ContainerResourceMetricSource) ProtoMessage ¶ added in v1.2.4
func (*ContainerResourceMetricSource) ProtoMessage()
func (*ContainerResourceMetricSource) ProtoReflect ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) ProtoReflect() protoreflect.Message
func (*ContainerResourceMetricSource) Reset ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) Reset()
func (*ContainerResourceMetricSource) String ¶ added in v1.2.4
func (x *ContainerResourceMetricSource) String() string
type ContainerResourceMetricStatus ¶ added in v1.2.4
type ContainerResourceMetricStatus struct { // name is the name of the resource in question. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // 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. // +optional CurrentAverageUtilization *int32 `protobuf:"varint,2,opt,name=currentAverageUtilization" json:"currentAverageUtilization,omitempty"` // currentAverageValue is the current value of the average of the // resource metric across all relevant pods, as a raw value (instead of as // a percentage of the request), similar to the "pods" metric source type. // It will always be set, regardless of the corresponding metric specification. CurrentAverageValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentAverageValue" json:"currentAverageValue,omitempty"` // container is the name of the container in the pods of the scaling target Container *string `protobuf:"bytes,4,opt,name=container" json:"container,omitempty"` // contains filtered or unexported fields }
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.
func (*ContainerResourceMetricStatus) Descriptor
deprecated
added in
v1.2.4
func (*ContainerResourceMetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use ContainerResourceMetricStatus.ProtoReflect.Descriptor instead.
func (*ContainerResourceMetricStatus) GetContainer ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) GetContainer() string
func (*ContainerResourceMetricStatus) GetCurrentAverageUtilization ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) GetCurrentAverageUtilization() int32
func (*ContainerResourceMetricStatus) GetCurrentAverageValue ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) GetCurrentAverageValue() *resource.Quantity
func (*ContainerResourceMetricStatus) GetName ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) GetName() string
func (*ContainerResourceMetricStatus) ProtoMessage ¶ added in v1.2.4
func (*ContainerResourceMetricStatus) ProtoMessage()
func (*ContainerResourceMetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) ProtoReflect() protoreflect.Message
func (*ContainerResourceMetricStatus) Reset ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) Reset()
func (*ContainerResourceMetricStatus) String ¶ added in v1.2.4
func (x *ContainerResourceMetricStatus) String() string
type CrossVersionObjectReference ¶
type CrossVersionObjectReference struct { // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" Kind *string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"` // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // API version of the referent // +optional ApiVersion *string `protobuf:"bytes,3,opt,name=apiVersion" json:"apiVersion,omitempty"` // contains filtered or unexported fields }
CrossVersionObjectReference contains enough information to let you identify the referred resource.
func (*CrossVersionObjectReference) Descriptor
deprecated
func (*CrossVersionObjectReference) Descriptor() ([]byte, []int)
Deprecated: Use CrossVersionObjectReference.ProtoReflect.Descriptor instead.
func (*CrossVersionObjectReference) GetApiVersion ¶
func (x *CrossVersionObjectReference) GetApiVersion() string
func (*CrossVersionObjectReference) GetKind ¶
func (x *CrossVersionObjectReference) GetKind() string
func (*CrossVersionObjectReference) GetName ¶
func (x *CrossVersionObjectReference) GetName() string
func (*CrossVersionObjectReference) ProtoMessage ¶
func (*CrossVersionObjectReference) ProtoMessage()
func (*CrossVersionObjectReference) ProtoReflect ¶ added in v1.2.4
func (x *CrossVersionObjectReference) ProtoReflect() protoreflect.Message
func (*CrossVersionObjectReference) Reset ¶
func (x *CrossVersionObjectReference) Reset()
func (*CrossVersionObjectReference) String ¶
func (x *CrossVersionObjectReference) String() string
type ExternalMetricSource ¶ added in v1.1.0
type ExternalMetricSource struct { // metricName is the name of the metric in question. MetricName *string `protobuf:"bytes,1,opt,name=metricName" json:"metricName,omitempty"` // metricSelector is used to identify a specific time series // within a given metric. // +optional MetricSelector *v1.LabelSelector `protobuf:"bytes,2,opt,name=metricSelector" json:"metricSelector,omitempty"` // targetValue is the target value of the metric (as a quantity). // Mutually exclusive with TargetAverageValue. // +optional TargetValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetValue" json:"targetValue,omitempty"` // targetAverageValue is the target per-pod value of global metric (as a quantity). // Mutually exclusive with TargetValue. // +optional TargetAverageValue *resource.Quantity `protobuf:"bytes,4,opt,name=targetAverageValue" json:"targetAverageValue,omitempty"` // contains filtered or unexported fields }
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.
func (*ExternalMetricSource) Descriptor
deprecated
added in
v1.1.0
func (*ExternalMetricSource) Descriptor() ([]byte, []int)
Deprecated: Use ExternalMetricSource.ProtoReflect.Descriptor instead.
func (*ExternalMetricSource) GetMetricName ¶ added in v1.1.0
func (x *ExternalMetricSource) GetMetricName() string
func (*ExternalMetricSource) GetMetricSelector ¶ added in v1.1.0
func (x *ExternalMetricSource) GetMetricSelector() *v1.LabelSelector
func (*ExternalMetricSource) GetTargetAverageValue ¶ added in v1.1.0
func (x *ExternalMetricSource) GetTargetAverageValue() *resource.Quantity
func (*ExternalMetricSource) GetTargetValue ¶ added in v1.1.0
func (x *ExternalMetricSource) GetTargetValue() *resource.Quantity
func (*ExternalMetricSource) ProtoMessage ¶ added in v1.1.0
func (*ExternalMetricSource) ProtoMessage()
func (*ExternalMetricSource) ProtoReflect ¶ added in v1.2.4
func (x *ExternalMetricSource) ProtoReflect() protoreflect.Message
func (*ExternalMetricSource) Reset ¶ added in v1.1.0
func (x *ExternalMetricSource) Reset()
func (*ExternalMetricSource) String ¶ added in v1.1.0
func (x *ExternalMetricSource) String() string
type ExternalMetricStatus ¶ added in v1.1.0
type ExternalMetricStatus struct { // metricName is the name of a metric used for autoscaling in // metric system. MetricName *string `protobuf:"bytes,1,opt,name=metricName" json:"metricName,omitempty"` // metricSelector is used to identify a specific time series // within a given metric. // +optional MetricSelector *v1.LabelSelector `protobuf:"bytes,2,opt,name=metricSelector" json:"metricSelector,omitempty"` // currentValue is the current value of the metric (as a quantity) CurrentValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentValue" json:"currentValue,omitempty"` // currentAverageValue is the current value of metric averaged over autoscaled pods. // +optional CurrentAverageValue *resource.Quantity `protobuf:"bytes,4,opt,name=currentAverageValue" json:"currentAverageValue,omitempty"` // contains filtered or unexported fields }
ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
func (*ExternalMetricStatus) Descriptor
deprecated
added in
v1.1.0
func (*ExternalMetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use ExternalMetricStatus.ProtoReflect.Descriptor instead.
func (*ExternalMetricStatus) GetCurrentAverageValue ¶ added in v1.1.0
func (x *ExternalMetricStatus) GetCurrentAverageValue() *resource.Quantity
func (*ExternalMetricStatus) GetCurrentValue ¶ added in v1.1.0
func (x *ExternalMetricStatus) GetCurrentValue() *resource.Quantity
func (*ExternalMetricStatus) GetMetricName ¶ added in v1.1.0
func (x *ExternalMetricStatus) GetMetricName() string
func (*ExternalMetricStatus) GetMetricSelector ¶ added in v1.1.0
func (x *ExternalMetricStatus) GetMetricSelector() *v1.LabelSelector
func (*ExternalMetricStatus) ProtoMessage ¶ added in v1.1.0
func (*ExternalMetricStatus) ProtoMessage()
func (*ExternalMetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *ExternalMetricStatus) ProtoReflect() protoreflect.Message
func (*ExternalMetricStatus) Reset ¶ added in v1.1.0
func (x *ExternalMetricStatus) Reset()
func (*ExternalMetricStatus) String ¶ added in v1.1.0
func (x *ExternalMetricStatus) String() string
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct { // metadata is the standard object metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // spec is the specification for the behaviour of the autoscaler. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. // +optional Spec *HorizontalPodAutoscalerSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // status is the current information about the autoscaler. // +optional Status *HorizontalPodAutoscalerStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` // contains filtered or unexported fields }
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.
func (*HorizontalPodAutoscaler) Descriptor
deprecated
func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int)
Deprecated: Use HorizontalPodAutoscaler.ProtoReflect.Descriptor instead.
func (*HorizontalPodAutoscaler) GetMetadata ¶
func (x *HorizontalPodAutoscaler) GetMetadata() *v1.ObjectMeta
func (*HorizontalPodAutoscaler) GetSpec ¶
func (x *HorizontalPodAutoscaler) GetSpec() *HorizontalPodAutoscalerSpec
func (*HorizontalPodAutoscaler) GetStatus ¶
func (x *HorizontalPodAutoscaler) GetStatus() *HorizontalPodAutoscalerStatus
func (*HorizontalPodAutoscaler) ProtoMessage ¶
func (*HorizontalPodAutoscaler) ProtoMessage()
func (*HorizontalPodAutoscaler) ProtoReflect ¶ added in v1.2.4
func (x *HorizontalPodAutoscaler) ProtoReflect() protoreflect.Message
func (*HorizontalPodAutoscaler) Reset ¶
func (x *HorizontalPodAutoscaler) Reset()
func (*HorizontalPodAutoscaler) String ¶
func (x *HorizontalPodAutoscaler) String() string
type HorizontalPodAutoscalerCondition ¶
type HorizontalPodAutoscalerCondition struct { // type describes the current condition Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // status is the status of the condition (True, False, Unknown) Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` // lastTransitionTime is the last time the condition transitioned from // one status to another // +optional LastTransitionTime *v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"` // reason is the reason for the condition's last transition. // +optional Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"` // message is a human-readable explanation containing details about // the transition // +optional Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"` // contains filtered or unexported fields }
HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
func (*HorizontalPodAutoscalerCondition) Descriptor
deprecated
func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int)
Deprecated: Use HorizontalPodAutoscalerCondition.ProtoReflect.Descriptor instead.
func (*HorizontalPodAutoscalerCondition) GetLastTransitionTime ¶
func (x *HorizontalPodAutoscalerCondition) GetLastTransitionTime() *v1.Time
func (*HorizontalPodAutoscalerCondition) GetMessage ¶
func (x *HorizontalPodAutoscalerCondition) GetMessage() string
func (*HorizontalPodAutoscalerCondition) GetReason ¶
func (x *HorizontalPodAutoscalerCondition) GetReason() string
func (*HorizontalPodAutoscalerCondition) GetStatus ¶
func (x *HorizontalPodAutoscalerCondition) GetStatus() string
func (*HorizontalPodAutoscalerCondition) GetType ¶
func (x *HorizontalPodAutoscalerCondition) GetType() string
func (*HorizontalPodAutoscalerCondition) ProtoMessage ¶
func (*HorizontalPodAutoscalerCondition) ProtoMessage()
func (*HorizontalPodAutoscalerCondition) ProtoReflect ¶ added in v1.2.4
func (x *HorizontalPodAutoscalerCondition) ProtoReflect() protoreflect.Message
func (*HorizontalPodAutoscalerCondition) Reset ¶
func (x *HorizontalPodAutoscalerCondition) Reset()
func (*HorizontalPodAutoscalerCondition) String ¶
func (x *HorizontalPodAutoscalerCondition) String() string
type HorizontalPodAutoscalerList ¶
type HorizontalPodAutoscalerList struct { // metadata is the standard list metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // items is the list of horizontal pod autoscaler objects. Items []*HorizontalPodAutoscaler `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.
func (*HorizontalPodAutoscalerList) Descriptor
deprecated
func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int)
Deprecated: Use HorizontalPodAutoscalerList.ProtoReflect.Descriptor instead.
func (*HorizontalPodAutoscalerList) GetItems ¶
func (x *HorizontalPodAutoscalerList) GetItems() []*HorizontalPodAutoscaler
func (*HorizontalPodAutoscalerList) GetMetadata ¶
func (x *HorizontalPodAutoscalerList) GetMetadata() *v1.ListMeta
func (*HorizontalPodAutoscalerList) ProtoMessage ¶
func (*HorizontalPodAutoscalerList) ProtoMessage()
func (*HorizontalPodAutoscalerList) ProtoReflect ¶ added in v1.2.4
func (x *HorizontalPodAutoscalerList) ProtoReflect() protoreflect.Message
func (*HorizontalPodAutoscalerList) Reset ¶
func (x *HorizontalPodAutoscalerList) Reset()
func (*HorizontalPodAutoscalerList) String ¶
func (x *HorizontalPodAutoscalerList) String() string
type HorizontalPodAutoscalerSpec ¶
type HorizontalPodAutoscalerSpec struct { // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics // should be collected, as well as to actually change the replica count. ScaleTargetRef *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=scaleTargetRef" json:"scaleTargetRef,omitempty"` // 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. // +optional MinReplicas *int32 `protobuf:"varint,2,opt,name=minReplicas" json:"minReplicas,omitempty"` // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. // It cannot be less that minReplicas. MaxReplicas *int32 `protobuf:"varint,3,opt,name=maxReplicas" json:"maxReplicas,omitempty"` // 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. // +optional Metrics []*MetricSpec `protobuf:"bytes,4,rep,name=metrics" json:"metrics,omitempty"` // contains filtered or unexported fields }
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
func (*HorizontalPodAutoscalerSpec) Descriptor
deprecated
func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int)
Deprecated: Use HorizontalPodAutoscalerSpec.ProtoReflect.Descriptor instead.
func (*HorizontalPodAutoscalerSpec) GetMaxReplicas ¶
func (x *HorizontalPodAutoscalerSpec) GetMaxReplicas() int32
func (*HorizontalPodAutoscalerSpec) GetMetrics ¶
func (x *HorizontalPodAutoscalerSpec) GetMetrics() []*MetricSpec
func (*HorizontalPodAutoscalerSpec) GetMinReplicas ¶
func (x *HorizontalPodAutoscalerSpec) GetMinReplicas() int32
func (*HorizontalPodAutoscalerSpec) GetScaleTargetRef ¶
func (x *HorizontalPodAutoscalerSpec) GetScaleTargetRef() *CrossVersionObjectReference
func (*HorizontalPodAutoscalerSpec) ProtoMessage ¶
func (*HorizontalPodAutoscalerSpec) ProtoMessage()
func (*HorizontalPodAutoscalerSpec) ProtoReflect ¶ added in v1.2.4
func (x *HorizontalPodAutoscalerSpec) ProtoReflect() protoreflect.Message
func (*HorizontalPodAutoscalerSpec) Reset ¶
func (x *HorizontalPodAutoscalerSpec) Reset()
func (*HorizontalPodAutoscalerSpec) String ¶
func (x *HorizontalPodAutoscalerSpec) String() string
type HorizontalPodAutoscalerStatus ¶
type HorizontalPodAutoscalerStatus struct { // observedGeneration is the most recent generation observed by this autoscaler. // +optional ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"` // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, // used by the autoscaler to control how often the number of pods is changed. // +optional LastScaleTime *v1.Time `protobuf:"bytes,2,opt,name=lastScaleTime" json:"lastScaleTime,omitempty"` // currentReplicas is current number of replicas of pods managed by this autoscaler, // as last seen by the autoscaler. CurrentReplicas *int32 `protobuf:"varint,3,opt,name=currentReplicas" json:"currentReplicas,omitempty"` // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, // as last calculated by the autoscaler. DesiredReplicas *int32 `protobuf:"varint,4,opt,name=desiredReplicas" json:"desiredReplicas,omitempty"` // currentMetrics is the last read state of the metrics used by this autoscaler. // +optional CurrentMetrics []*MetricStatus `protobuf:"bytes,5,rep,name=currentMetrics" json:"currentMetrics,omitempty"` // conditions is the set of conditions required for this autoscaler to scale its target, // and indicates whether or not those conditions are met. Conditions []*HorizontalPodAutoscalerCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"` // contains filtered or unexported fields }
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
func (*HorizontalPodAutoscalerStatus) Descriptor
deprecated
func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int)
Deprecated: Use HorizontalPodAutoscalerStatus.ProtoReflect.Descriptor instead.
func (*HorizontalPodAutoscalerStatus) GetConditions ¶
func (x *HorizontalPodAutoscalerStatus) GetConditions() []*HorizontalPodAutoscalerCondition
func (*HorizontalPodAutoscalerStatus) GetCurrentMetrics ¶
func (x *HorizontalPodAutoscalerStatus) GetCurrentMetrics() []*MetricStatus
func (*HorizontalPodAutoscalerStatus) GetCurrentReplicas ¶
func (x *HorizontalPodAutoscalerStatus) GetCurrentReplicas() int32
func (*HorizontalPodAutoscalerStatus) GetDesiredReplicas ¶
func (x *HorizontalPodAutoscalerStatus) GetDesiredReplicas() int32
func (*HorizontalPodAutoscalerStatus) GetLastScaleTime ¶
func (x *HorizontalPodAutoscalerStatus) GetLastScaleTime() *v1.Time
func (*HorizontalPodAutoscalerStatus) GetObservedGeneration ¶
func (x *HorizontalPodAutoscalerStatus) GetObservedGeneration() int64
func (*HorizontalPodAutoscalerStatus) ProtoMessage ¶
func (*HorizontalPodAutoscalerStatus) ProtoMessage()
func (*HorizontalPodAutoscalerStatus) ProtoReflect ¶ added in v1.2.4
func (x *HorizontalPodAutoscalerStatus) ProtoReflect() protoreflect.Message
func (*HorizontalPodAutoscalerStatus) Reset ¶
func (x *HorizontalPodAutoscalerStatus) Reset()
func (*HorizontalPodAutoscalerStatus) String ¶
func (x *HorizontalPodAutoscalerStatus) String() string
type MetricSpec ¶
type MetricSpec struct { // 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 Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // object refers to a metric describing a single kubernetes object // (for example, hits-per-second on an Ingress object). // +optional Object *ObjectMetricSource `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"` // pods refers to 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. // +optional Pods *PodsMetricSource `protobuf:"bytes,3,opt,name=pods" json:"pods,omitempty"` // resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes 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. // +optional Resource *ResourceMetricSource `protobuf:"bytes,4,opt,name=resource" json:"resource,omitempty"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes describing a single container in // each pod of 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. // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. // +optional ContainerResource *ContainerResourceMetricSource `protobuf:"bytes,7,opt,name=containerResource" json:"containerResource,omitempty"` // external refers to a global metric that is not associated // with any Kubernetes object. It allows autoscaling based on information // coming from components running outside of cluster // (for example length of queue in cloud messaging service, or // QPS from loadbalancer running outside of cluster). // +optional External *ExternalMetricSource `protobuf:"bytes,5,opt,name=external" json:"external,omitempty"` // contains filtered or unexported fields }
MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
func (*MetricSpec) Descriptor
deprecated
func (*MetricSpec) Descriptor() ([]byte, []int)
Deprecated: Use MetricSpec.ProtoReflect.Descriptor instead.
func (*MetricSpec) GetContainerResource ¶ added in v1.2.4
func (x *MetricSpec) GetContainerResource() *ContainerResourceMetricSource
func (*MetricSpec) GetExternal ¶ added in v1.1.0
func (x *MetricSpec) GetExternal() *ExternalMetricSource
func (*MetricSpec) GetObject ¶
func (x *MetricSpec) GetObject() *ObjectMetricSource
func (*MetricSpec) GetPods ¶
func (x *MetricSpec) GetPods() *PodsMetricSource
func (*MetricSpec) GetResource ¶
func (x *MetricSpec) GetResource() *ResourceMetricSource
func (*MetricSpec) GetType ¶
func (x *MetricSpec) GetType() string
func (*MetricSpec) ProtoMessage ¶
func (*MetricSpec) ProtoMessage()
func (*MetricSpec) ProtoReflect ¶ added in v1.2.4
func (x *MetricSpec) ProtoReflect() protoreflect.Message
func (*MetricSpec) Reset ¶
func (x *MetricSpec) Reset()
func (*MetricSpec) String ¶
func (x *MetricSpec) String() string
type MetricStatus ¶
type MetricStatus struct { // 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 Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // object refers to a metric describing a single kubernetes object // (for example, hits-per-second on an Ingress object). // +optional Object *ObjectMetricStatus `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"` // pods refers to 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. // +optional Pods *PodsMetricStatus `protobuf:"bytes,3,opt,name=pods" json:"pods,omitempty"` // resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes 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. // +optional Resource *ResourceMetricStatus `protobuf:"bytes,4,opt,name=resource" json:"resource,omitempty"` // container resource refers to a resource metric (such as those specified in // requests and limits) known to Kubernetes 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. // +optional ContainerResource *ContainerResourceMetricStatus `protobuf:"bytes,7,opt,name=containerResource" json:"containerResource,omitempty"` // external refers to a global metric that is not associated // with any Kubernetes object. It allows autoscaling based on information // coming from components running outside of cluster // (for example length of queue in cloud messaging service, or // QPS from loadbalancer running outside of cluster). // +optional External *ExternalMetricStatus `protobuf:"bytes,5,opt,name=external" json:"external,omitempty"` // contains filtered or unexported fields }
MetricStatus describes the last-read state of a single metric.
func (*MetricStatus) Descriptor
deprecated
func (*MetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use MetricStatus.ProtoReflect.Descriptor instead.
func (*MetricStatus) GetContainerResource ¶ added in v1.2.4
func (x *MetricStatus) GetContainerResource() *ContainerResourceMetricStatus
func (*MetricStatus) GetExternal ¶ added in v1.1.0
func (x *MetricStatus) GetExternal() *ExternalMetricStatus
func (*MetricStatus) GetObject ¶
func (x *MetricStatus) GetObject() *ObjectMetricStatus
func (*MetricStatus) GetPods ¶
func (x *MetricStatus) GetPods() *PodsMetricStatus
func (*MetricStatus) GetResource ¶
func (x *MetricStatus) GetResource() *ResourceMetricStatus
func (*MetricStatus) GetType ¶
func (x *MetricStatus) GetType() string
func (*MetricStatus) ProtoMessage ¶
func (*MetricStatus) ProtoMessage()
func (*MetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *MetricStatus) ProtoReflect() protoreflect.Message
func (*MetricStatus) Reset ¶
func (x *MetricStatus) Reset()
func (*MetricStatus) String ¶
func (x *MetricStatus) String() string
type ObjectMetricSource ¶
type ObjectMetricSource struct { // target is the described Kubernetes object. Target *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` // metricName is the name of the metric in question. MetricName *string `protobuf:"bytes,2,opt,name=metricName" json:"metricName,omitempty"` // targetValue is the target value of the metric (as a quantity). TargetValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetValue" json:"targetValue,omitempty"` // selector is the string-encoded form of a standard kubernetes label selector for the given metric // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping // When unset, just the metricName will be used to gather metrics. // +optional Selector *v1.LabelSelector `protobuf:"bytes,4,opt,name=selector" json:"selector,omitempty"` // averageValue is the target value of the average of the // metric across all relevant pods (as a quantity) // +optional AverageValue *resource.Quantity `protobuf:"bytes,5,opt,name=averageValue" json:"averageValue,omitempty"` // contains filtered or unexported fields }
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
func (*ObjectMetricSource) Descriptor
deprecated
func (*ObjectMetricSource) Descriptor() ([]byte, []int)
Deprecated: Use ObjectMetricSource.ProtoReflect.Descriptor instead.
func (*ObjectMetricSource) GetAverageValue ¶ added in v1.2.4
func (x *ObjectMetricSource) GetAverageValue() *resource.Quantity
func (*ObjectMetricSource) GetMetricName ¶
func (x *ObjectMetricSource) GetMetricName() string
func (*ObjectMetricSource) GetSelector ¶ added in v1.2.4
func (x *ObjectMetricSource) GetSelector() *v1.LabelSelector
func (*ObjectMetricSource) GetTarget ¶
func (x *ObjectMetricSource) GetTarget() *CrossVersionObjectReference
func (*ObjectMetricSource) GetTargetValue ¶
func (x *ObjectMetricSource) GetTargetValue() *resource.Quantity
func (*ObjectMetricSource) ProtoMessage ¶
func (*ObjectMetricSource) ProtoMessage()
func (*ObjectMetricSource) ProtoReflect ¶ added in v1.2.4
func (x *ObjectMetricSource) ProtoReflect() protoreflect.Message
func (*ObjectMetricSource) Reset ¶
func (x *ObjectMetricSource) Reset()
func (*ObjectMetricSource) String ¶
func (x *ObjectMetricSource) String() string
type ObjectMetricStatus ¶
type ObjectMetricStatus struct { // target is the described Kubernetes object. Target *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` // metricName is the name of the metric in question. MetricName *string `protobuf:"bytes,2,opt,name=metricName" json:"metricName,omitempty"` // currentValue is the current value of the metric (as a quantity). CurrentValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentValue" json:"currentValue,omitempty"` // selector is the string-encoded form of a standard kubernetes label selector for the given metric // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. // When unset, just the metricName will be used to gather metrics. // +optional Selector *v1.LabelSelector `protobuf:"bytes,4,opt,name=selector" json:"selector,omitempty"` // averageValue is the current value of the average of the // metric across all relevant pods (as a quantity) // +optional AverageValue *resource.Quantity `protobuf:"bytes,5,opt,name=averageValue" json:"averageValue,omitempty"` // contains filtered or unexported fields }
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
func (*ObjectMetricStatus) Descriptor
deprecated
func (*ObjectMetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use ObjectMetricStatus.ProtoReflect.Descriptor instead.
func (*ObjectMetricStatus) GetAverageValue ¶ added in v1.2.4
func (x *ObjectMetricStatus) GetAverageValue() *resource.Quantity
func (*ObjectMetricStatus) GetCurrentValue ¶
func (x *ObjectMetricStatus) GetCurrentValue() *resource.Quantity
func (*ObjectMetricStatus) GetMetricName ¶
func (x *ObjectMetricStatus) GetMetricName() string
func (*ObjectMetricStatus) GetSelector ¶ added in v1.2.4
func (x *ObjectMetricStatus) GetSelector() *v1.LabelSelector
func (*ObjectMetricStatus) GetTarget ¶
func (x *ObjectMetricStatus) GetTarget() *CrossVersionObjectReference
func (*ObjectMetricStatus) ProtoMessage ¶
func (*ObjectMetricStatus) ProtoMessage()
func (*ObjectMetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *ObjectMetricStatus) ProtoReflect() protoreflect.Message
func (*ObjectMetricStatus) Reset ¶
func (x *ObjectMetricStatus) Reset()
func (*ObjectMetricStatus) String ¶
func (x *ObjectMetricStatus) String() string
type PodsMetricSource ¶
type PodsMetricSource struct { // metricName is the name of the metric in question MetricName *string `protobuf:"bytes,1,opt,name=metricName" json:"metricName,omitempty"` // targetAverageValue is the target value of the average of the // metric across all relevant pods (as a quantity) TargetAverageValue *resource.Quantity `protobuf:"bytes,2,opt,name=targetAverageValue" json:"targetAverageValue,omitempty"` // selector is the string-encoded form of a standard kubernetes label selector for the given metric // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping // When unset, just the metricName will be used to gather metrics. // +optional Selector *v1.LabelSelector `protobuf:"bytes,3,opt,name=selector" json:"selector,omitempty"` // contains filtered or unexported fields }
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.
func (*PodsMetricSource) Descriptor
deprecated
func (*PodsMetricSource) Descriptor() ([]byte, []int)
Deprecated: Use PodsMetricSource.ProtoReflect.Descriptor instead.
func (*PodsMetricSource) GetMetricName ¶
func (x *PodsMetricSource) GetMetricName() string
func (*PodsMetricSource) GetSelector ¶ added in v1.2.4
func (x *PodsMetricSource) GetSelector() *v1.LabelSelector
func (*PodsMetricSource) GetTargetAverageValue ¶
func (x *PodsMetricSource) GetTargetAverageValue() *resource.Quantity
func (*PodsMetricSource) ProtoMessage ¶
func (*PodsMetricSource) ProtoMessage()
func (*PodsMetricSource) ProtoReflect ¶ added in v1.2.4
func (x *PodsMetricSource) ProtoReflect() protoreflect.Message
func (*PodsMetricSource) Reset ¶
func (x *PodsMetricSource) Reset()
func (*PodsMetricSource) String ¶
func (x *PodsMetricSource) String() string
type PodsMetricStatus ¶
type PodsMetricStatus struct { // metricName is the name of the metric in question MetricName *string `protobuf:"bytes,1,opt,name=metricName" json:"metricName,omitempty"` // currentAverageValue is the current value of the average of the // metric across all relevant pods (as a quantity) CurrentAverageValue *resource.Quantity `protobuf:"bytes,2,opt,name=currentAverageValue" json:"currentAverageValue,omitempty"` // selector is the string-encoded form of a standard kubernetes label selector for the given metric // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. // When unset, just the metricName will be used to gather metrics. // +optional Selector *v1.LabelSelector `protobuf:"bytes,3,opt,name=selector" json:"selector,omitempty"` // contains filtered or unexported fields }
PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
func (*PodsMetricStatus) Descriptor
deprecated
func (*PodsMetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use PodsMetricStatus.ProtoReflect.Descriptor instead.
func (*PodsMetricStatus) GetCurrentAverageValue ¶
func (x *PodsMetricStatus) GetCurrentAverageValue() *resource.Quantity
func (*PodsMetricStatus) GetMetricName ¶
func (x *PodsMetricStatus) GetMetricName() string
func (*PodsMetricStatus) GetSelector ¶ added in v1.2.4
func (x *PodsMetricStatus) GetSelector() *v1.LabelSelector
func (*PodsMetricStatus) ProtoMessage ¶
func (*PodsMetricStatus) ProtoMessage()
func (*PodsMetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *PodsMetricStatus) ProtoReflect() protoreflect.Message
func (*PodsMetricStatus) Reset ¶
func (x *PodsMetricStatus) Reset()
func (*PodsMetricStatus) String ¶
func (x *PodsMetricStatus) String() string
type ResourceMetricSource ¶
type ResourceMetricSource struct { // name is the name of the resource in question. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // 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. // +optional TargetAverageUtilization *int32 `protobuf:"varint,2,opt,name=targetAverageUtilization" json:"targetAverageUtilization,omitempty"` // targetAverageValue is the target value of the average of the // resource metric across all relevant pods, as a raw value (instead of as // a percentage of the request), similar to the "pods" metric source type. // +optional TargetAverageValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetAverageValue" json:"targetAverageValue,omitempty"` // contains filtered or unexported fields }
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.
func (*ResourceMetricSource) Descriptor
deprecated
func (*ResourceMetricSource) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricSource.ProtoReflect.Descriptor instead.
func (*ResourceMetricSource) GetName ¶
func (x *ResourceMetricSource) GetName() string
func (*ResourceMetricSource) GetTargetAverageUtilization ¶
func (x *ResourceMetricSource) GetTargetAverageUtilization() int32
func (*ResourceMetricSource) GetTargetAverageValue ¶
func (x *ResourceMetricSource) GetTargetAverageValue() *resource.Quantity
func (*ResourceMetricSource) ProtoMessage ¶
func (*ResourceMetricSource) ProtoMessage()
func (*ResourceMetricSource) ProtoReflect ¶ added in v1.2.4
func (x *ResourceMetricSource) ProtoReflect() protoreflect.Message
func (*ResourceMetricSource) Reset ¶
func (x *ResourceMetricSource) Reset()
func (*ResourceMetricSource) String ¶
func (x *ResourceMetricSource) String() string
type ResourceMetricStatus ¶
type ResourceMetricStatus struct { // name is the name of the resource in question. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // 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. // +optional CurrentAverageUtilization *int32 `protobuf:"varint,2,opt,name=currentAverageUtilization" json:"currentAverageUtilization,omitempty"` // currentAverageValue is the current value of the average of the // resource metric across all relevant pods, as a raw value (instead of as // a percentage of the request), similar to the "pods" metric source type. // It will always be set, regardless of the corresponding metric specification. CurrentAverageValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentAverageValue" json:"currentAverageValue,omitempty"` // contains filtered or unexported fields }
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.
func (*ResourceMetricStatus) Descriptor
deprecated
func (*ResourceMetricStatus) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricStatus.ProtoReflect.Descriptor instead.
func (*ResourceMetricStatus) GetCurrentAverageUtilization ¶
func (x *ResourceMetricStatus) GetCurrentAverageUtilization() int32
func (*ResourceMetricStatus) GetCurrentAverageValue ¶
func (x *ResourceMetricStatus) GetCurrentAverageValue() *resource.Quantity
func (*ResourceMetricStatus) GetName ¶
func (x *ResourceMetricStatus) GetName() string
func (*ResourceMetricStatus) ProtoMessage ¶
func (*ResourceMetricStatus) ProtoMessage()
func (*ResourceMetricStatus) ProtoReflect ¶ added in v1.2.4
func (x *ResourceMetricStatus) ProtoReflect() protoreflect.Message
func (*ResourceMetricStatus) Reset ¶
func (x *ResourceMetricStatus) Reset()
func (*ResourceMetricStatus) String ¶
func (x *ResourceMetricStatus) String() string