<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
只有
存活探针:/actuator/health/liveness
就绪探针:/actuator/health/readiness
存在问题
容器探测只是探测服务是否达到了可用的状态,没有考虑到注册到注册中心的服务是否可用,因此会出现短暂服务不可用。解决办法参考【参考】
← Kubesphere问题总结 DevOps最佳实践→