To enable readiness and liveness probes in Kubernetes we need to make the actuator endpoint /actuator/health accessible without authentication.
We got it working, but in doing so we found a lot of places, where something similar can be configured. And we could not figure out the differences.
Here are the configs we found:
The default Spring config:
management:
endpoints:
enabled-by-default: false
web.exposure.include: '*'
endpoint:
info.enabled: true
health.enabled: true
mgm.services:
mgm.services:
rest:
actuatorSecurity.secured:
info: false
health: false
mgm.uaa.authentication.unsecured-urls:
mgm.uaa.authentication:
unsecured-urls: /actuator/health,/actuator/health/*,/actuator/info
mgm.uaa.authentication.anonymous:
see GetA12 Login
mgm.uaa.authentication:
anonymous:
access-urls: /config # Behind this url we have the client configuration
enabled: true
What are the differences between all of those? And what is the correct way of achieving this?
Thanks in advance!