Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd health check endpoint to trivy server #534
Labels
Comments
|
I would like to take up on this issue and start working around it |
|
As mentioned, I would just begin by setting up the endpoint |
|
@yashvardhan-kukreja I'm sorry for the late reply. It sounds good! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Trivy has client/server mode and the server provides some endpoints. It would be useful if it provides
/healthzthat returns status code 200 and simply "ok" in the case of running Trivy server in k8s cluster. Ideally, we should check the download of the DB, but it is enough to simply return 200 as a first step.https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
https://cloud.google.com/blog/products/gcp/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes