public class V1HorizontalPodAutoscalerSpec extends Object
Constructor and Description |
---|
V1HorizontalPodAutoscalerSpec() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
|
Integer |
getMinReplicas()
lower limit for the number of pods that can be set by the autoscaler, default 1.
|
V1CrossVersionObjectReference |
getScaleTargetRef()
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
|
Integer |
getTargetCPUUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.
|
int |
hashCode() |
V1HorizontalPodAutoscalerSpec |
maxReplicas(Integer maxReplicas) |
V1HorizontalPodAutoscalerSpec |
minReplicas(Integer minReplicas) |
V1HorizontalPodAutoscalerSpec |
scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) |
void |
setMaxReplicas(Integer maxReplicas) |
void |
setMinReplicas(Integer minReplicas) |
void |
setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) |
void |
setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) |
V1HorizontalPodAutoscalerSpec |
targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) |
String |
toString() |
public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas)
public Integer getMaxReplicas()
public void setMaxReplicas(Integer maxReplicas)
public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas)
public Integer getMinReplicas()
public void setMinReplicas(Integer minReplicas)
public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
public V1CrossVersionObjectReference getScaleTargetRef()
public void setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
public Integer getTargetCPUUtilizationPercentage()
public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
Copyright © 2018. All rights reserved.