mirror of
https://gitee.com/lakernote/easy-admin.git
synced 2026-09-03 05:33:47 +08:00
增加 k8s 探针
This commit is contained in:
@@ -48,6 +48,18 @@ public class ActuatorController {
|
||||
return "redirect:http://localhost:8080/actuator/health/ping";
|
||||
}
|
||||
|
||||
@GetMapping("/health/liveness")
|
||||
@ApiOperation(value = "给k8s用的探针-存活接口")
|
||||
public String healthLiveness() {
|
||||
return "redirect:http://localhost:8080/actuator/health/liveness";
|
||||
}
|
||||
|
||||
@GetMapping("/health/readiness")
|
||||
@ApiOperation(value = "给k8s用的探针-就绪接口")
|
||||
public String healthReadiness() {
|
||||
return "redirect:http://localhost:8080/actuator/health/readiness";
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义类继承自 InfoContributor
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user