Kubernetes Probes
Self-hosting Lakera Guard can be deployed to Kubernetes. For that purpose, we implemented several endpoints to serve as liveness, readiness and startup probes.
For detailed Kubernetes deployment instructions, see Self-hosting Lakera Guard.
Startup
Use /startupz to implement a startup probe for your K8s deployment. It is recommended to implement the startup probe if you are implementing readiness and/or liveness. That is because the latter ones require gunicorn workers to start.
Example usage:
Readiness
Use /readyz to implement a readiness probe for your K8s deployment. If you are implementing both readiness and liveness probes, it is recommended to have a higher failureThreshold value for the latter one.
Example usage:
Liveness
Use /livez to implement a liveness probe for your K8s deployment. If you are implementing both readiness and liveness probes, it is recommended to have a higher failureThreshold value for the latter one.
Example usage: