Liveness probe
GET
/healthz
const url = 'http://127.0.0.1:8080/healthz';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8080/healthzResponses
Section titled “Responses”The process is up.
Media typeapplication/json
object
status
required
string
reason
string
Example generated
{ "status": "example", "reason": "example"}