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

Adding health check and liveness probe for controller #410

Merged
merged 2 commits into from
Dec 23, 2020

Conversation

haouc
Copy link
Contributor

@haouc haouc commented Dec 22, 2020

Issue #, if available:
#407
Description of changes:
Added health check and liveness probe for controller.

Test

$ curl http://192.168.66.77:61779/healthz
ok

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@haouc haouc requested review from M00nF1sh and kishorj December 22, 2020 20:05
main.go Outdated
Port: 9443,
LeaderElection: enableLeaderElection,
LeaderElectionID: "appmesh-controller-leader-election",
HealthProbeBindAddress: ":61779", // the liveness endpoint is default to "/healthz"
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets make this port configurable, via command line flag. We can use 61779 as the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. Updated the probe in config.

Test

$ curl http://192.168.85.101:61000/healthz
ok

@haouc haouc requested a review from kishorj December 23, 2020 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants