I am not sure if this is a bug or not. I am following the tutorials Register a Service with Consul Service Discovery | Consul - HashiCorp Learn and since I have nginx running on port 80, the provided example actually passed health checks. However, changing configuration to port 8080 (which is not used) still shows the health check as passing. Even in the Web UI it seems to check only whether the node is working on port 80, and not the registered port. Is this the expected behavior?
Hi @VinWare, if the health check was configured to query a port on which no service is listening, the health check should fail. Would you mind sharing the modified service definition you used so that we can better assist you in debugging this issue?