Pod 健康指示器
Spring Boot 使用 HealthIndicator 来暴露应用程序的健康信息。这使得它对于向用户暴露健康相关信息非常有用,并且非常适合用作 readiness probes。
Kubernetes 健康指标(作为核心模块的一部分)暴露以下信息:
-
Pod 名称、IP 地址、命名空间、服务账户、节点名称及其 IP 地址
-
一个标志,指示 Spring Boot 应用程序是 Kubernetes 内部的还是外部的
您可以通过在 application.[properties | yaml] 中将 management.health.kubernetes.enabled 设置为 false 来禁用此 HealthContributor。