spring-cloud-deployer-kubernetes icon indicating copy to clipboard operation
spring-cloud-deployer-kubernetes copied to clipboard

spring.cloud.deployer.kubernetes.[liveness | readiness]-command-probe-command is not working

Open DebajitKumarPhukan opened this issue 1 year ago • 3 comments

Issue: I have implemented a Spring Batch application which applies remote partitioning and launches jobs in Kubernetes. The issue I identified was that when I attempted for a command based readiness and liveness probe, it doesn't seem to be working at all. I verified the same in pod yaml and can't see any readiness/liveness probe generated at all. I can only see them passed under spec.containers.args in pod yaml.

Below are the configs I specified in the application.properties

spring.cloud.deployer.kubernetes.liveness-command-probe-command=echo live
spring.cloud.deployer.kubernetes.readiness-command-probe-command=echo live

I even tried setting below config with the hope that it would resolve the issue, but unfortunately it didn't.

spring.cloud.deployer.kubernetes.probe-type=command

DebajitKumarPhukan avatar Mar 18 '23 07:03 DebajitKumarPhukan