🥳 node-termination-handler v1.18.0 Automated Release! 🥑 #850
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
node-termination-handler v1.18.0 Automated Chart Sync! 🤖🤖
Release Notes 📝:
Improved logging in Queue Processor mode
v1.18.0
introduces thelogFormatVersion
Helm chart option, to allow you to opt-in to more detailed logs.The default value is
1
, which keeps logging the same way it did in prior releases (<=v1.17.3
).Setting the value to
2
will give you more detail about which AWS event triggered the cordon/drain. Previously, all these events were bucketed underSQS_TERMINATE
and it was difficult to tell what was happening.This option is also available as a command line flag,
--log-format-version
What does the new logging look like?
logFormatVersion=2
modifies several Debug, Info, and Warn logs, as well as Kubernetes events emitted by NTH. These changes improve your observability about what NTH is doing when responding to events via SQS. If your monitoring system is configured to look for any of the specific strings in the tables below, you may need to modify your configuration to use the updated strings if you use the new log format version.Changes to logs when starting up
event_type
field from the Info log when starting a monitor; replace withmonitor_type
field, with new values. See Table 1.event_type
field from the Warn log when a monitor fails to start; replace withmonitor_type
field, with new values. See Table 1.Changes to logs when processing an event
monitor
field in the Info log. See Table 1.kind
field in the Info log, if running Queue Processor mode. See Table 2.Changes to logs when receiving an SQS message
SQS_TERMINATE
in the Debug log if running Queue Processor mode. See Table 2.Tables of changed values
Table 1: Monitor types
REBALANCE_RECOMMENDATION
REBALANCE_RECOMMENDATION_MONITOR
SCHEDULED_EVENT
SCHEDULED_EVENT_MONITOR
SPOT_ITN
SPOT_ITN_MONITOR
SQS_TERMINATE
SQS_MONITOR
Table 2: Event types
REBALANCE_RECOMMENDATION
REBALANCE_RECOMMENDATION
SCHEDULED_EVENT
SCHEDULED_EVENT
SPOT_ITN
SPOT_ITN
SQS_TERMINATE
REBALANCE_RECOMMENDATION
SCHEDULED_EVENT
SPOT_ITN
STATE_CHANGE
ASG_LIFECYCLE
Table 3: Event reasons
RebalanceRecommendation
RebalanceRecommendation
ScheduledEvent
ScheduledEvent
SpotInterruption
SpotInterruption
SQSTermination
RebalanceRecommendation
ScheduledEvent
SpotInterruption
StateChange
ASGLifecycle
Commits with these changes
Other changes
Full Changelog: aws/aws-node-termination-handler@v1.17.3...v1.18.0