'Check traffic rules in openshift

We've got an OpenShift cluster with Istio in which we want to debug routing rules. But in my container I don't even have iptables utility or iptables config file with rule chains. How can I check traffic rules from within container?

Thanks in advance.



Solution 1:[1]

Since you are using istio, I assume most of the traffic goes through istio-proxy container. You can exec into istio-proxy container with

kubectl exec -it <pod-name> -c istio-proxy -- bash

and check iptables there.


Optionally you can install Kiali with

kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/kiali.yaml

and then open it with

istioctl dashboard kiali

This will give you an insight into your Istio mesh, and routing of each of the workloads.

Solution 2:[2]

First you have to check your istio configs like virtualServices then if you want to go deeper you can use istioctl proxy-config routes <pod-name>.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 p10l
Solution 2 Eisa Qasemi