-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init container emits non-error messages to stderr #1801
Comments
@skpy What's up, Skippy? :) |
I agree that it's generally poor Bash hygiene to have any non-error output be directed to |
I can trivially submit a PR to effect the removal of |
ack, totes. I'd be good with that. just checking with Jayanth if he's good with it too. |
@skpy Thanks for bringing this up. I will talk to @jayanthvn and can actively work on this from next week. Feel free to raise a PR, if you have anything in mind. I can take it from there. |
I agree with you @jaypipes we can remove the set -x. We do have logs in stdout if anything fails during init. Also I have an open PR where I am moving the init and entry point script to golang :)- #1726 |
Thanks for merging my PR! Out of curiosity, when do you think this will land in a release? |
@skpy - I have milestoned the PR for next upcoming release of v1.11.0. It is planned for Jan/Feb but will provide you an estimated date by next week. |
The PR #1802 is merged. |
|
What happened:
The amazon-vpc-cni-init container invokes set -x in
init.sh
which emits output to stderr. Our log collection and monitoring system (DataDog) sees these messages as errors (because they're coming from stderr, not stdout) and trips our alerting threshold for number of errors per unit of time whenever the init container runs.I have implemented a log processor in DataDog to forcibly set all
amazon-vpc-cni-init
logs as INFO, which avoids the superfluous alerts at the expense of masking any real errors. I could also modify our existing alerts to exclude amazon-vpc-cni-init, then make a new alert specifically for amazon-vpc-cni-init, if necessary.It might also be worth adding
-s
to the curl commands (1 and 2) to suppress the status output from curl, which also emits to stderr.Environment:
EKS 1.21
kubectl version
):Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-eks-06eac09", GitCommit:"5f6d83fe4cb7febb5f4f4e39b3b2b64ebbbe3e97", GitTreeState:"clean", BuildDate:"2021-09-13T14:20:15Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
v1.10.1-eksbuild.1
The text was updated successfully, but these errors were encountered: