Search code examples
c#.netkubernetes-health-checkhealth-check

HealthChecks Setup in Kubernetes


I've setup healthchecks for my app running in kubernetes. https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/doc/k8s-ui-discovery.md

I see the healthchecks working under /healthui endpoint:

enter image description here

Kubernetes service yaml: enter image description here

I have HealthCheckUI defined in my ConfigMaps yaml:

enter image description here

However I get an exception:

enter image description here

How does one setup HealthChecksUI in kubernetes?


Solution

  • The error is about access forbidden. Not about Healtchecks, have a look at the service account you are using if it has enough permission for listing services.