Update "service" register mode to only register hostIP:nodePort addresses in consul if the node is actually running a pod matching the service's labelSelector.
This solves the issue where services are registered in consul for all nodes that they could be scheduled on, and not the nodes that they are actually running on.
Update "service" register mode to only register
hostIP:nodePort
addresses in consul if the node is actually running a pod matching the service's labelSelector.This solves the issue where services are registered in consul for all nodes that they could be scheduled on, and not the nodes that they are actually running on.