Service health check

How can I apply service check while registering external service(deployed on kubernetes) to consul also deployed on kubernetes (openshift)?
As the pod IP address seems changing, I can not possibly give the ip for service check? What steps are to be taken in this case ?
Thanks & Regards.

I had the same issue

Found the solution!${}-my-openshift-route-url/actuator/health${}-my-openshift-route-url

So set

both to false and add the lines from the top block and you should be golden. Please note that needs to be the same as your OpenShift service name.