-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv2beta1_horizontal_pod_autoscaler_spec.go
26 lines (20 loc) · 1.51 KB
/
v2beta1_horizontal_pod_autoscaler_spec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
type V2beta1HorizontalPodAutoscalerSpec struct {
// 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 `json:"maxReplicas"`
// 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.
Metrics []V2beta1MetricSpec `json:"metrics,omitempty"`
// minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.
MinReplicas int32 `json:"minReplicas,omitempty"`
// 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 *V2beta1CrossVersionObjectReference `json:"scaleTargetRef"`
}