Network Connectivity - Basic Diagnostics ​
If you're having trouble with network connectivity and don't know where to begin troubleshooting, follow these steps. The issues may not be directly related to Istio, but could be due to misconfigured Istio resources or other cluster resources.
- Verify the state of Istio CR. If it is in the
Warningstate, check the warning message and conditions. It might help you begin the investigation. - Verify that no NetworkPolicies are affecting the connectivity by blocking traffic between Pods in the service mesh. To find all NetworkPolicy resources, run the command
kubectl get networkpolicies -A. - The configuration of the following kinds of resources can affect the connectivity in the service mesh. Verify that those resources are configured as intended:
- Use the command
istioctl analyze -Ato check for potential issues in the Istio configuration and see suggestions on how to fix them. - To enable the access logs of the Envoy proxy, follow the guide Envoy Access Logs. In the access logs, you can find the field response_flags. The response flags DC (Downstream client terminated connection) and UC (Upstream terminated connection) are not within the scope of the Istio module, as they relate to the behavior of the client (DC) or the workload application (UC).