k8wiz
Istio
Easy
Traffic Management

With outboundTrafficPolicy set to REGISTRY_ONLY, what does a sidecar return for a plain HTTP request on port 80 to an external host with no ServiceEntry?

Select your answer:

Show answer and explanation

Answer: 502 Bad Gateway

Explanation

In REGISTRY_ONLY mode Istio adds a catch-all virtual host named block_all to the sidecar's HTTP routes, and it answers with a direct 502 response. HTTPS and raw TCP connections to unknown hosts get no status code at all, because the sidecar closes the connection instead.

Read more about Istio