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

Can the Docker container have a HEALTHCHECK? #50

Open
avidrissman opened this issue Jan 28, 2023 · 2 comments
Open

Can the Docker container have a HEALTHCHECK? #50

avidrissman opened this issue Jan 28, 2023 · 2 comments

Comments

@avidrissman
Copy link

The golink binary uses tsnet internally to connect to the tailnet. Is there a way to hook up a HEALTHCHECK to return the status of the golink binary’s internal tsnet connection? That sounds tricky now that I write it, but it would be pretty cool if the Docker health status could reflect the tailnet connection status.

@willnorris
Copy link
Member

we could certainly add a health check endpoint, but does it make sense to have it report on the tsnet connection? By default, golink only listens on the tsnet connection, so the fact that you could even reach the healthcheck endpoint at all indicates that it's working. Or were you thinking the healthcheck would listen on a different interface?

@avidrissman
Copy link
Author

I’m not referring to a “health check” as a general concept, but HEALTHCHECK the Docker feature; see https://scoutapm.com/blog/how-to-use-docker-healthcheck. This wouldn’t be going through the tsnet connection; this would be a feature of the Docker container.

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

No branches or pull requests

2 participants