Skip to content

Releases: aws/aws-node-termination-handler

v1.22.1

01 Aug 04:23
2e49a2e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.22.0...v1.22.1

v1.22.0

15 May 22:51
f74b2bb
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.21.0...v1.22.0

v1.21.0

11 Mar 18:34
1088b64
Compare
Choose a tag to compare

What's Changed

Deprecations

  • The actions_node metric is deprecated due to the potential for high cardinality causing an issue for downstream consumers. A new metric actions has been added to take the place of actions_node without the potential for high cardinality. This release publishes both metrics but actions_node will be removed in a future release.

New Contributors

Full Changelog: v1.20.0...v1.21.0

v1.20.0

21 Jun 21:31
fa77420
Compare
Choose a tag to compare

What's Changed

🚀 What’s New?

  • optionally delete sqs message when node not found by @cjerad in #801
  • eks-charts to ECR Public migration by @LikithaVemulapalli in #803
    Going forward, aws-node-termination-handler helm charts will be available here

🐛 Bug Fixes

📓 Others

New Contributors

Full Changelog: v1.19.0...v1.20.0

v1.19.0

26 Jan 20:07
57b3a3d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.18.3...v1.19.0

v1.18.3

17 Jan 19:51
f0892cc
Compare
Choose a tag to compare

What's Changed

  • Don't try to uncordon on startup in Queue Processor mode by @johngmyers in #743
  • Remove unnecessary configuration in Queue Processor mode by @johngmyers in #745
  • Don't skip evicting pods with same name but in different namespace by @johngmyers in #746
  • Don't construct an IMDS client when in Queue Processor mode by @johngmyers in #747
  • Replaced deprecated config checkASGTagBeforeDraining in end-to-end tests by @snay2 in #753

Full Changelog: v1.18.2...v1.18.3

v1.18.2

14 Dec 20:41
e561eb0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.18.1...v1.18.2

v2.0.0-beta

13 Dec 20:53
3dac285
Compare
Choose a tag to compare
v2.0.0-beta Pre-release
Pre-release

What's Changed

Full Changelog: v2.0.0-alpha...v2.0.0-beta

v1.18.1

28 Nov 17:16
82f3a25
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.18.0...v1.18.1

v1.18.0

21 Nov 23:22
62a9142
Compare
Choose a tag to compare

Improved logging in Queue Processor mode

v1.18.0 introduces the logFormatVersion 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 under SQS_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

  1. Remove event_type field from the Info log when starting a monitor; replace with monitor_type field, with new values. See Table 1.
  2. Remove event_type field from the Warn log when a monitor fails to start; replace with monitor_type field, with new values. See Table 1.

Changes to logs when processing an event

  1. New monitor field in the Info log. See Table 1.
  2. Potentially change value of kind field in the Info log, if running Queue Processor mode. See Table 2.
  3. Potentially change the "reason" field in the k8s event if running Queue Processor mode. See Table 3.

Changes to logs when receiving an SQS message

  1. Include the specific event type instead of SQS_TERMINATE in the Debug log if running Queue Processor mode. See Table 2.

Tables of changed values

Table 1: Monitor types
Previous New
REBALANCE_RECOMMENDATION REBALANCE_RECOMMENDATION_MONITOR
SCHEDULED_EVENT SCHEDULED_EVENT_MONITOR
SPOT_ITN SPOT_ITN_MONITOR
SQS_TERMINATE SQS_MONITOR
Table 2: Event types
Previous New
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
Previous reason New reason
RebalanceRecommendation RebalanceRecommendation
ScheduledEvent ScheduledEvent
SpotInterruption SpotInterruption
SQSTermination RebalanceRecommendation ScheduledEvent SpotInterruption StateChange ASGLifecycle

Commits with these changes

  • feat: emit pod events on drain by @trutx in #703
  • chore: add annotations to events in SQS mode by @trutx in #715
  • fix: show actual event kinds in Queue mode by @trutx and @cjerad in #725

Other changes

  • README: Clarify distinctions between IMDS and QP modes by @snay2 in #695
  • Clarify wording about using ASG tags. Fix broken docs link. by @snay2 in #721
  • Remove bespoke Prometheus helm chart and use the latest public release instead by @snay2 in #723
  • upgrade to Go 1.19 by @cjerad and @snay2 in #726

Full Changelog: v1.17.3...v1.18.0