generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Description
Currently, most of the termination handler including this one, drains the node when termination notice is received.
TaintBasedEviction has been enabled since 1.13 (and TaintNodesByCondition since 1.12). Has anyone thought about using taints instead to approach this as below?
On receiving Termination Notice, taint the affected node with "termination-notice:NoSchedule" and "termination-notice:NoExecute".
In that case, any pods that do not have the toleration will automatically be evicted.
It will then give back the decision (and flexibility) to the cluster admin whether a pod can tolerate this or not.
This will provide more flexibility and scalability to say what combination of pods should or should not be evicted per the user's need.
Notes
- Taints by Condition also seems to be how k8s handles out-of-resource eviction: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/#taint-nodes-by-condition
Metadata
Metadata
Assignees
Labels
No labels