Using Kubernetes readiness and liveness probes for health checks with ASP.NET Core 2.2 on OpenShift - RHD Blog

This article shows how the ASP.NET Core 2.2 Health Checks API works with OpenShift by implementing two health checks: one for the Kubernetes liveness probe and one for the Kubernetes readiness probes. Since OpenShift includes Kubernetes, the example also works well with Kubernetes.