bagetter / BaGetter

A lightweight NuGet and symbol server

Home Page:https://www.bagetter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add basic health probe to web project

Hechamon opened this issue · comments

Is your feature request related to a problem? Please describe.

I'm running the docker image in a kubernetes cluster, so having a simple health probe would be nice, to be able to check if the container is ready to serve traffic

Describe the solution you'd like

Add an http endpoint to check if the app is running, in the future this could be expanded to check if the database is reachable etc.

Describe alternatives you've considered

I'm currently calling the index page as a health endpoint, which is unnecessarily expensive

Additional context

Microsoft has documentation on how to do this easily here Health checks in ASP.NET Core