Skip to content

Commit af750c3

Browse files
authored
Merge pull request kubernetes#3040 from johanneswuerbach/aws-impaired-vols
Ignore AWS NodeWithImpairedVolumes taint
2 parents 7821e74 + 86ba8ee commit af750c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cluster-autoscaler/utils/taints/taints.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ limitations under the License.
1717
package taints
1818

1919
import (
20-
"k8s.io/autoscaler/cluster-autoscaler/utils/kubernetes"
2120
"strings"
2221

2322
apiv1 "k8s.io/api/core/v1"
2423
"k8s.io/autoscaler/cluster-autoscaler/utils/deletetaint"
24+
"k8s.io/autoscaler/cluster-autoscaler/utils/kubernetes"
2525
cloudproviderapi "k8s.io/cloud-provider/api"
2626

2727
klog "k8s.io/klog/v2"
@@ -34,6 +34,9 @@ const (
3434
IgnoreTaintPrefix = "ignore-taint.cluster-autoscaler.kubernetes.io/"
3535

3636
gkeNodeTerminationHandlerTaint = "cloud.google.com/impending-node-termination"
37+
38+
// AWS: Indicates that a node has volumes stuck in attaching state and hence it is not fit for scheduling more pods
39+
awsNodeWithImpairedVolumesTaint = "NodeWithImpairedVolumes"
3740
)
3841

3942
// TaintKeySet is a set of taint key
@@ -52,6 +55,7 @@ var (
5255
cloudproviderapi.TaintExternalCloudProvider: true,
5356
cloudproviderapi.TaintNodeShutdown: true,
5457
gkeNodeTerminationHandlerTaint: true,
58+
awsNodeWithImpairedVolumesTaint: true,
5559
}
5660
)
5761

0 commit comments

Comments
 (0)