Skip to content

Commit ca72045

Browse files
authored
Remove unnecessary configuration in Queue Processor mode (#745)
* Remove unnecessary configuration in Queue P rocessor mode * Address review comments
1 parent 6bf9175 commit ca72045

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

config/helm/aws-node-termination-handler/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ The configuration in this table applies to AWS Node Termination Handler in IMDS
152152
| `windowsTolerations` | Override `daemonsetTolerations` for the Linux DaemonSet. | `[]` |
153153
| `enableProbesServer` | If `true`, start an http server exposing `/healthz` endpoint for probes. | `false` |
154154
| `metadataTries` | The number of times to try requesting metadata. | `3` |
155-
| `enableSpotInterruptionDraining` | If `true`, drain nodes when the spot interruption termination notice is received. | `true` |
156-
| `enableScheduledEventDraining` | If `true`, drain nodes before the maintenance window starts for an EC2 instance scheduled event. | `true` |
157-
| `enableRebalanceMonitoring` | If `true`, cordon nodes when the rebalance recommendation notice is received. If you'd like to drain the node in addition to cordoning, then also set `enableRebalanceDraining`. | `false` |
158-
| `enableRebalanceDraining` | If `true`, drain nodes when the rebalance recommendation notice is received. | `false` |
155+
| `enableSpotInterruptionDraining` | If `true`, drain nodes when the spot interruption termination notice is received. Only used in IMDS mode. | `true` |
156+
| `enableScheduledEventDraining` | If `true`, drain nodes before the maintenance window starts for an EC2 instance scheduled event. Only used in IMDS mode. | `true` |
157+
| `enableRebalanceMonitoring` | If `true`, cordon nodes when the rebalance recommendation notice is received. If you'd like to drain the node in addition to cordoning, then also set `enableRebalanceDraining`. Only used in IMDS mode. | `false` |
158+
| `enableRebalanceDraining` | If `true`, drain nodes when the rebalance recommendation notice is received. Only used in IMDS mode. | `false` |
159159

160160
### Testing Configuration
161161

config/helm/aws-node-termination-handler/templates/deployment.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ spec:
146146
- name: WEBHOOK_TEMPLATE
147147
value: {{ .Values.webhookTemplate | quote }}
148148
{{- end }}
149-
- name: ENABLE_SPOT_INTERRUPTION_DRAINING
150-
value: {{ .Values.enableSpotInterruptionDraining | quote }}
151-
- name: ENABLE_SCHEDULED_EVENT_DRAINING
152-
value: {{ .Values.enableScheduledEventDraining | quote }}
153-
- name: ENABLE_REBALANCE_MONITORING
154-
value: {{ .Values.enableRebalanceMonitoring | quote }}
155-
- name: ENABLE_REBALANCE_DRAINING
156-
value: {{ .Values.enableRebalanceDraining | quote }}
157149
- name: ENABLE_SQS_TERMINATION_DRAINING
158150
value: "true"
159151
{{- with .Values.awsRegion }}

config/helm/aws-node-termination-handler/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,22 +259,22 @@ daemonsetTolerations:
259259
linuxTolerations: []
260260
windowsTolerations: []
261261

262-
# If the probes server is running for the Daemonset
262+
# If the probes server is running.
263263
enableProbesServer: false
264264

265265
# Total number of times to try making the metadata request before failing.
266266
metadataTries: 3
267267

268-
# enableSpotInterruptionDraining If false, do not drain nodes when the spot interruption termination notice is received
268+
# enableSpotInterruptionDraining If false, do not drain nodes when the spot interruption termination notice is received. Only used in IMDS mode.
269269
enableSpotInterruptionDraining: true
270270

271-
# enableScheduledEventDraining If false, do not drain nodes before the maintenance window starts for an EC2 instance scheduled event
271+
# enableScheduledEventDraining If false, do not drain nodes before the maintenance window starts for an EC2 instance scheduled event. Only used in IMDS mode.
272272
enableScheduledEventDraining: true
273273

274-
# enableRebalanceMonitoring If true, cordon nodes when the rebalance recommendation notice is received
274+
# enableRebalanceMonitoring If true, cordon nodes when the rebalance recommendation notice is received. Only used in IMDS mode.
275275
enableRebalanceMonitoring: false
276276

277-
# enableRebalanceDraining If true, drain nodes when the rebalance recommendation notice is received
277+
# enableRebalanceDraining If true, drain nodes when the rebalance recommendation notice is received. Only used in IMDS mode.
278278
enableRebalanceDraining: false
279279

280280
# ---------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)