Skip to content

Commit

Permalink
Ignore AWS NodeWithImpairedVolumes taint
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Jul 27, 2020
1 parent b8c214e commit 2a17e33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster-autoscaler/utils/taints/taints.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ limitations under the License.
package taints

import (
"k8s.io/autoscaler/cluster-autoscaler/utils/kubernetes"
"strings"

apiv1 "k8s.io/api/core/v1"
"k8s.io/autoscaler/cluster-autoscaler/utils/deletetaint"
"k8s.io/autoscaler/cluster-autoscaler/utils/kubernetes"
cloudproviderapi "k8s.io/cloud-provider/api"

"k8s.io/klog"
Expand All @@ -34,6 +34,9 @@ const (
IgnoreTaintPrefix = "ignore-taint.cluster-autoscaler.kubernetes.io/"

gkeNodeTerminationHandlerTaint = "cloud.google.com/impending-node-termination"

// AWS: Indicates that a node has volumes stuck in attaching state and hence it is not fit for scheduling more pods
awsNodeWithImpairedVolumesTaint = "NodeWithImpairedVolumes"
)

// TaintKeySet is a set of taint key
Expand All @@ -52,6 +55,7 @@ var (
cloudproviderapi.TaintExternalCloudProvider: true,
cloudproviderapi.TaintNodeShutdown: true,
gkeNodeTerminationHandlerTaint: true,
awsNodeWithImpairedVolumesTaint: true,
}
)

Expand Down

0 comments on commit 2a17e33

Please sign in to comment.