【发布时间】:2022-01-28 21:27:21
【问题描述】:
这是我在 application.yaml 中的配置:
management:
endpoint:
health:
show-details: "ALWAYS"
probes:
enabled: true
endpoints:
enabled-by-default: true
web:
exposure:
include: metrics, health, caches, restart
根据文档,这应该足以为 spring 应用程序启用 liveness 和 readiness 探测。但是端点(/actuator/health/liveness 和/actuator/health/readiness)仍然返回 404。我在配置中尝试了很多组合,但没有任何效果。你能告诉我该怎么做吗?
【问题讨论】:
-
嘿,你解决了吗?需要帮助吗?
标签: java spring spring-boot kubernetes spring-boot-actuator