Skip to content
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

Hide health check output #569

Merged
merged 1 commit into from
Aug 5, 2019
Merged

Hide health check output #569

merged 1 commit into from
Aug 5, 2019

Conversation

mogren
Copy link
Contributor

@mogren mogren commented Aug 5, 2019

Issue #, if available: #568

Description of changes:

We are not interested in the log output of the health check, just that it succeeds. Hiding the verbose output from the grpc_health_probe.

Sample output when starting up:

> kubectl logs -f aws-node-xxxxx -n kube-system
====== Starting amazon-k8s-agent ======
Checking if ipamd is serving
Waiting for ipamd health check
Ipamd is up and serving
Copying AWS CNI plugin and config
Node ready, watching ipamd health

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mogren mogren changed the title Hide healthcheck output Hide health check output Aug 5, 2019
}

waitIPamDServing () {
until grpcHealthCheck; do
echo "Waiting for ipamd health check";
sleep 1;
done
echo "Ipamd is up and serving"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/Ipamd is up and serving/L-IPAMD is up and ready to serve/g

/app/aws-k8s-agent &

# Check ipamd health
echo "Checking if ipamd is serving"
waitIPamDServing

echo "===== Copying AWS CNI plugin and config ========="
echo "Copying AWS CNI plugin and config"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Break this down into two steps

  • Moving the cni-plugin
  • Moving the cni-conf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix in master branch.

@mogren mogren merged commit 476ecc6 into aws:release-1.5 Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants