Kubernetes中的HealthChecks设置

问题描述

我已经为在kubernetes中运行的应用设置了运行状况检查。 https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/doc/k8s-ui-discovery.md

我看到运行状况检查在/ healthui端点下进行:

enter image description here

Kubernetes服务Yaml:

enter image description here

我在ConfigMaps yaml中定义了HealthCheckUI:

enter image description here

但是我得到一个例外:

enter image description here

如何在kubernetes中设置HealthChecksUI?

解决方法

错误与禁止访问有关。与Healtchecks无关,如果它具有列出服务的足够权限,请查看您使用的服务帐户。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...