From 2a17e33483c568a3ee0ab602955b0a70f909edae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCrbach?= Date: Sun, 12 Apr 2020 15:00:33 +0200 Subject: [PATCH] Ignore AWS NodeWithImpairedVolumes taint --- cluster-autoscaler/utils/taints/taints.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster-autoscaler/utils/taints/taints.go b/cluster-autoscaler/utils/taints/taints.go index 2b416a15e367..b3d4dacade98 100644 --- a/cluster-autoscaler/utils/taints/taints.go +++ b/cluster-autoscaler/utils/taints/taints.go @@ -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" @@ -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 @@ -52,6 +55,7 @@ var ( cloudproviderapi.TaintExternalCloudProvider: true, cloudproviderapi.TaintNodeShutdown: true, gkeNodeTerminationHandlerTaint: true, + awsNodeWithImpairedVolumesTaint: true, } )