aws-node-termination-handler
aws-node-termination-handler copied to clipboard
Node Termination Handler only logs to stderr
trafficstars
Describe the bug NTH only logs to stderr
See this line of code for the culprit: https://github.com/aws/aws-node-termination-handler/blob/70eab8817e3b16482d58ae9a12f5bdb505ca5970/cmd/node-termination-handler.go#L59
Steps to reproduce View log output of the NTH with stderr redirector to /dev/null
Expected outcome NTH logs to stdout for normal events and stderr for actual error events.
Application Logs

Environment
- NTH App Version: v1.16.5
- NTH Mode (IMDS/Queue processor): QP
- OS/Arch: linux
- Kubernetes version: 1.22
- Installation method: Helm