curl --request GET \
--url https://api.example.com/healthz{
"status": "<string>"
}Check if the API is running and healthy
curl --request GET \
--url https://api.example.com/healthz{
"status": "<string>"
}curl https://api.dailytracker.com/healthz
OK
Dockerfile:
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/healthz || exit 1
livenessProbe:
httpGet:
path: /healthz
port: 3000
initialDelaySeconds: 10
periodSeconds: 30
/healthz as the default health check path. See the Deployment Guide for more details.