Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should the URL be for Readiness and Liveness Probe Endpoints?

Should I use URL's at the root of my application like so:

/ready
/live

Should they both be grouped together like so:

/status/ready
/status/live

Should I use RFC5785 and put them under the .well-known sub-directory like so:

/.well-known/status/ready
/.well-known/status/live

If I do this, my understanding is that I have to register the status assignment with the official IANA registry.

Or is there some other scheme? I'm looking for a common convention that people use.

like image 297
Muhammad Rehan Saeed Avatar asked Oct 26 '25 09:10

Muhammad Rehan Saeed


2 Answers

The Kubernetes docs use /healthz, which I'd say is advisable to follow; but you really can use whatever you want.

I believe healthz is used to keep it inline with zpages, which are described by OpenCensus:

https://opencensus.io/zpages/

like image 85
Rawkode Avatar answered Oct 29 '25 02:10

Rawkode


AFAIK, you can use whatever you want and it's whatever you put in your application. If you have a way in your application to differentiate between "Ready" and "Alive". Either one of these using a GET request works:

/ready
/live

or

/status/ready
/status/live

Note that generally 'alive' means that your app has come up and 'ready' means that your app is ready to serve traffic.

like image 37
Rico Avatar answered Oct 29 '25 04:10

Rico



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!