跳到主要内容

Pod 健康指示器

DeepSeek V3 中英对照 Pod Health Indicator

Spring Boot 使用 HealthIndicator 来暴露应用程序的健康信息。这使得它非常适合向用户暴露与健康相关的信息,并且非常适合用作 就绪探针

Kubernetes 健康指示器(属于核心模块的一部分)暴露了以下信息:

  • Pod 名称、IP 地址、命名空间、服务账户、节点名称及其 IP 地址

  • 一个标志,用于指示 Spring Boot 应用程序是 Kubernetes 内部的还是外部的

你可以通过在 application.[properties | yaml] 中将 management.health.kubernetes.enabled 设置为 false 来禁用这个 HealthContributor