Iam using spring cloud vault to handle the connection with the database. There is a known problem when the token renew is greater than the max ttl database role, we get the error org.springframework.vault.client.VaultException: Cannot renew lease: Status 403
Is it possible to use spring actuator and kubernetes liveness probe to intercept this error and restart the pod if we have this issue ? Is spring vault actuator flag enough to handle this situation or do I need to use another actuator endpoint?
Thank you