You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: config/helm/aws-node-termination-handler/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ The configuration in this table applies to all AWS Node Termination Handler mode
95
95
|`webhookTemplateConfigMapName`| Pass the webhook template file as a configmap. | "``" |
96
96
|`webhookTemplateConfigMapKey`| Name of the Configmap key storing the template file. |`""`|
97
97
|`enableSqsTerminationDraining`| If `true`, this turns on queue-processor mode which drains nodes when an SQS termination event is received. |`false`|
98
+
|`enableOutOfServiceTaint`| If `true`, this will add out-of-service taint to node after cordon/drain process which would forcefully evict pods without matching tolerations and detach persistent volumes. |`false`|
Copy file name to clipboardexpand all lines: config/helm/aws-node-termination-handler/values.yaml
+3
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,9 @@ cordonOnly: false
86
86
# Taint node upon spot interruption termination notice.
87
87
taintNode: false
88
88
89
+
# Add out-of-service taint to node after cordon/drain process which would forcefully evict pods without matching tolerations and detach persistent volumes.
90
+
enableOutOfServiceTaint: false
91
+
89
92
# Exclude node from load balancer before cordoning via the ServiceNodeExclusion feature gate.
flag.BoolVar(&config.CordonOnly, "cordon-only", getBoolEnv(cordonOnly, false), "If true, nodes will be cordoned but not drained when an interruption event occurs.")
216
219
flag.BoolVar(&config.TaintNode, "taint-node", getBoolEnv(taintNode, false), "If true, nodes will be tainted when an interruption event occurs.")
217
220
flag.StringVar(&config.TaintEffect, "taint-effect", getEnv(taintEffect, taintEffectDefault), "Sets the effect when a node is tainted.")
221
+
flag.BoolVar(&config.EnableOutOfServiceTaint, "enable-out-of-service-taint", getBoolEnv(enableOutOfServiceTaintConfigKey, enableOutOfServiceTaintDefault), "If true, nodes will be tainted as out-of-service after we cordon/drain the nodes when an interruption event occurs.")
218
222
flag.BoolVar(&config.ExcludeFromLoadBalancers, "exclude-from-load-balancers", getBoolEnv(excludeFromLoadBalancers, false), "If true, nodes will be marked for exclusion from load balancers when an interruption event occurs.")
219
223
flag.BoolVar(&config.JsonLogging, "json-logging", getBoolEnv(jsonLoggingConfigKey, jsonLoggingDefault), "If true, use JSON-formatted logs instead of human readable logs.")
220
224
flag.StringVar(&config.LogLevel, "log-level", getEnv(logLevelConfigKey, logLevelDefault), "Sets the log level (INFO, DEBUG, or ERROR)")
0 commit comments