Use Consul Service Mesh1 / 5
When an application communicates through its Consul sidecar proxy, to what address does the application send traffic destined for an upstream service?
CorrectIncorrect
Alex
When an upstream is declared, the sidecar proxy binds a local loopback listener (e.g., 127.0.0.1:<local_bind_port>) for that upstream service. The application connects to this local address, and the sidecar establishes an mTLS connection to the remote service's sidecar across the mesh. The option “The public DNS name of the upstream service…” is wrong—applications never use the upstream's public DNS name through the mesh. The option “The Consul server's HTTP API endpoint, encrypted over TLS” confuses this with Consul's HTTP API endpoint. The option “The upstream's registered IP address returned…” describes direct DNS-based discovery, bypassing the sidecar abstraction entirely. Ref: developer.hashicorp.com/consul/docs/reference/proxy/sidecar; /consul/docs/connect/proxy/sidecar
Sourcedeveloper.hashicorp.com
Follow-up answers are available in the app. Create a free account — no credit card required.
Question 1 of 5
Create a free account