mirror of https://github.com/kubernetes/kops.git
Merge pull request #10471 from akshedu/chore/add_new_pod_scale_up_delay_cluster_autoscaler
Add new-pod-scale-up-delay in Cluster Autoscaler spec
This commit is contained in:
commit
9561ed38c5
|
@ -442,6 +442,11 @@ spec:
|
|||
description: 'Image is the docker container used. Default: the
|
||||
latest supported image for the specified kubernetes version.'
|
||||
type: string
|
||||
newPodScaleUpDelay:
|
||||
description: 'NewPodScaleUpDelay causes cluster autoscaler to
|
||||
ignore unschedulable pods until they are a certain "age", regardless
|
||||
of the scan-interval Default: 0s'
|
||||
type: string
|
||||
scaleDownUtilizationThreshold:
|
||||
description: 'ScaleDownUtilizationThreshold determines the utilization
|
||||
threshold for node scale-down. Default: 0.5'
|
||||
|
|
|
@ -824,6 +824,9 @@ type ClusterAutoscalerConfig struct {
|
|||
// SkipNodesWithLocalStorage makes cluster autoscaler skip scale-down of nodes with local storage.
|
||||
// Default: true
|
||||
SkipNodesWithLocalStorage *bool `json:"skipNodesWithLocalStorage,omitempty"`
|
||||
// NewPodScaleUpDelay causes cluster autoscaler to ignore unschedulable pods until they are a certain "age", regardless of the scan-interval
|
||||
// Default: 0s
|
||||
NewPodScaleUpDelay *string `json:"newPodScaleUpDelay,omitempty"`
|
||||
// Image is the docker container used.
|
||||
// Default: the latest supported image for the specified kubernetes version.
|
||||
Image *string `json:"image,omitempty"`
|
||||
|
|
|
@ -823,6 +823,9 @@ type ClusterAutoscalerConfig struct {
|
|||
// SkipNodesWithLocalStorage makes cluster autoscaler skip scale-down of nodes with local storage.
|
||||
// Default: true
|
||||
SkipNodesWithLocalStorage *bool `json:"skipNodesWithLocalStorage,omitempty"`
|
||||
// NewPodScaleUpDelay causes cluster autoscaler to ignore unschedulable pods until they are a certain "age", regardless of the scan-interval
|
||||
// Default: 0s
|
||||
NewPodScaleUpDelay *string `json:"newPodScaleUpDelay,omitempty"`
|
||||
// Image is the docker container used.
|
||||
// Default: the latest supported image for the specified kubernetes version.
|
||||
Image *string `json:"image,omitempty"`
|
||||
|
|
|
@ -1839,6 +1839,7 @@ func autoConvert_v1alpha2_ClusterAutoscalerConfig_To_kops_ClusterAutoscalerConfi
|
|||
out.ScaleDownUtilizationThreshold = in.ScaleDownUtilizationThreshold
|
||||
out.SkipNodesWithSystemPods = in.SkipNodesWithSystemPods
|
||||
out.SkipNodesWithLocalStorage = in.SkipNodesWithLocalStorage
|
||||
out.NewPodScaleUpDelay = in.NewPodScaleUpDelay
|
||||
out.Image = in.Image
|
||||
return nil
|
||||
}
|
||||
|
@ -1855,6 +1856,7 @@ func autoConvert_kops_ClusterAutoscalerConfig_To_v1alpha2_ClusterAutoscalerConfi
|
|||
out.ScaleDownUtilizationThreshold = in.ScaleDownUtilizationThreshold
|
||||
out.SkipNodesWithSystemPods = in.SkipNodesWithSystemPods
|
||||
out.SkipNodesWithLocalStorage = in.SkipNodesWithLocalStorage
|
||||
out.NewPodScaleUpDelay = in.NewPodScaleUpDelay
|
||||
out.Image = in.Image
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -633,6 +633,11 @@ func (in *ClusterAutoscalerConfig) DeepCopyInto(out *ClusterAutoscalerConfig) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.NewPodScaleUpDelay != nil {
|
||||
in, out := &in.NewPodScaleUpDelay, &out.NewPodScaleUpDelay
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Image != nil {
|
||||
in, out := &in.Image, &out.Image
|
||||
*out = new(string)
|
||||
|
|
|
@ -733,6 +733,11 @@ func (in *ClusterAutoscalerConfig) DeepCopyInto(out *ClusterAutoscalerConfig) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.NewPodScaleUpDelay != nil {
|
||||
in, out := &in.NewPodScaleUpDelay, &out.NewPodScaleUpDelay
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Image != nil {
|
||||
in, out := &in.Image, &out.Image
|
||||
*out = new(string)
|
||||
|
|
|
@ -80,6 +80,9 @@ func (b *ClusterAutoscalerOptionsBuilder) BuildOptions(o interface{}) error {
|
|||
if cas.BalanceSimilarNodeGroups == nil {
|
||||
cas.BalanceSimilarNodeGroups = fi.Bool(false)
|
||||
}
|
||||
if cas.NewPodScaleUpDelay == nil {
|
||||
cas.NewPodScaleUpDelay = fi.String("0s")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -27381,6 +27381,7 @@ spec:
|
|||
- --scale-down-utilization-threshold={{ .ScaleDownUtilizationThreshold }}
|
||||
- --skip-nodes-with-local-storage={{ .SkipNodesWithLocalStorage }}
|
||||
- --skip-nodes-with-system-pods={{ .SkipNodesWithSystemPods }}
|
||||
- --new-pod-scale-up-delay={{ .NewPodScaleUpDelay }}
|
||||
- --stderrthreshold=info
|
||||
- --v=2
|
||||
ports:
|
||||
|
|
|
@ -159,6 +159,7 @@ spec:
|
|||
- --scale-down-utilization-threshold={{ .ScaleDownUtilizationThreshold }}
|
||||
- --skip-nodes-with-local-storage={{ .SkipNodesWithLocalStorage }}
|
||||
- --skip-nodes-with-system-pods={{ .SkipNodesWithSystemPods }}
|
||||
- --new-pod-scale-up-delay={{ .NewPodScaleUpDelay }}
|
||||
- --stderrthreshold=info
|
||||
- --v=2
|
||||
ports:
|
||||
|
|
Loading…
Reference in New Issue