HealthChecks Setup in Kubernetes

410 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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.