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

Health check for Kubernetes #38

Open
aodj opened this issue Jul 21, 2023 · 1 comment
Open

Health check for Kubernetes #38

aodj opened this issue Jul 21, 2023 · 1 comment

Comments

@aodj
Copy link

aodj commented Jul 21, 2023

Is there any possibility of having a health check for use in Kubernetes? We've seen that when using iceberg-rest with PostgreSQL if the connection to the database server drops, the iceberg-rest server needs rebooting. This could be easily handled automatically from Kubernetes by having a health check but I don't know how much effort it would be to add in health checks for each catalog (where necessary)

@danielcweeks
Copy link
Contributor

danielcweeks commented Apr 29, 2024

I think what you probably want to do is just create a table and point the healthcheck at the load endpoint.

Typically this would be something like default.dual and then just have k9s load the table via the REST endpoint. That would touch the database and ensure liveness.

Alternatively, you could use the list namespaces, since that doesn't require the existence of a table.

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