Ignore node termination taint in scale up
This commit is contained in:
parent
2d80cb340d
commit
383199ab6e
|
|
@ -21,6 +21,8 @@ import (
|
||||||
schedulerapi "k8s.io/kubernetes/pkg/scheduler/api"
|
schedulerapi "k8s.io/kubernetes/pkg/scheduler/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const gkeNodeTerminationHandlerTaint = "cloud.google.com/impending-node-termination"
|
||||||
|
|
||||||
// TaintKeySet is a set of taint key
|
// TaintKeySet is a set of taint key
|
||||||
type TaintKeySet map[string]bool
|
type TaintKeySet map[string]bool
|
||||||
|
|
||||||
|
|
@ -36,5 +38,6 @@ var (
|
||||||
v1.TaintNodePIDPressure: true,
|
v1.TaintNodePIDPressure: true,
|
||||||
schedulerapi.TaintExternalCloudProvider: true,
|
schedulerapi.TaintExternalCloudProvider: true,
|
||||||
schedulerapi.TaintNodeShutdown: true,
|
schedulerapi.TaintNodeShutdown: true,
|
||||||
|
gkeNodeTerminationHandlerTaint: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue