Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Add deeper healthcheck for agent#268

Merged
Joseph-Irving merged 1 commit intouswitch:masterfrom
mattmb:add-deep-healthcheck
Aug 9, 2019
Merged

Add deeper healthcheck for agent#268
Joseph-Irving merged 1 commit intouswitch:masterfrom
mattmb:add-deep-healthcheck

Conversation

@mattmb
Copy link
Copy Markdown
Contributor

@mattmb mattmb commented Jul 22, 2019

Currently the agent health endpoint just checks that it can return some
metadata from AWS. I would also like to be able to check that the agent
is able to communticate succsessfully with the server. The motivation is
that we are renewing certificates externally and when the client cert
expires the agent will fail to talk to the server. In this case I want
the healthcheck to fail so that kubernetes will restart the agent and
cause it to re-read (the now renewed certs) from disk.

I've implemented this as a URL query param so that doing /health will
continue to function the same but /health?deep=anything will also do a
grpc call to the server and assert the health endpoint there returns
"ok"

Currently the agent health endpoint just checks that it can return some
metadata from AWS. I would also like to be able to check that the agent
is able to communticate succsessfully with the server. The motivation is
that we are renewing certificates externally and when the client cert
expires the agent will fail to talk to the server. In this case I want
the healthcheck to fail so that kubernetes will restart the agent and
cause it to re-read (the now renewed certs) from disk.

I've implemented this as a URL query param so that doing /health will
continue to function the same but /health?deep=anything will also do a
grpc call to the server and assert the health endpoint there returns
"ok"
@dbyron0
Copy link
Copy Markdown

dbyron0 commented Jul 22, 2019

Thanks for this!

@mattmb
Copy link
Copy Markdown
Contributor Author

mattmb commented Aug 6, 2019

@pingles any thoughts on this?

@pingles
Copy link
Copy Markdown
Contributor

pingles commented Aug 9, 2019

Looks good, @uswitch/cloud comments?

Copy link
Copy Markdown
Contributor

@Joseph-Irving Joseph-Irving left a comment

Choose a reason for hiding this comment

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

I think this looks good, will update the readme to include this info somewhere
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants