From 383199ab6ecdce04c81d4fdd88cad9fa56fce664 Mon Sep 17 00:00:00 2001 From: Aleksandra Malinowska Date: Wed, 11 Dec 2019 15:17:03 +0100 Subject: [PATCH] Ignore node termination taint in scale up --- cluster-autoscaler/core/utils/taint_key_set.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster-autoscaler/core/utils/taint_key_set.go b/cluster-autoscaler/core/utils/taint_key_set.go index d5cb127819..c652e20870 100644 --- a/cluster-autoscaler/core/utils/taint_key_set.go +++ b/cluster-autoscaler/core/utils/taint_key_set.go @@ -21,6 +21,8 @@ import ( schedulerapi "k8s.io/kubernetes/pkg/scheduler/api" ) +const gkeNodeTerminationHandlerTaint = "cloud.google.com/impending-node-termination" + // TaintKeySet is a set of taint key type TaintKeySet map[string]bool @@ -36,5 +38,6 @@ var ( v1.TaintNodePIDPressure: true, schedulerapi.TaintExternalCloudProvider: true, schedulerapi.TaintNodeShutdown: true, + gkeNodeTerminationHandlerTaint: true, } )