I have an openshift cluster setup in Azure (ARO) like below
Now Pod1, Pod2 and Pod3 are in 3 different namespaces.
Pod2 cannot access pod1 but If we create a route for pod1 then pod2 is able to access the Pod1 through the route. which is not the ideal one for us.
Now we need to restrict this Pod2 access to Pod1 through Pod1 Route so we decided to block through egress at Pod2, lets say Pod1 has a domain abc.example.com then we need to block abc.example.com in Pod2 egress.
I am new to Openshift, can someone please help me in how to achieve this blocking at egress inside openshift 4.4.
Any help would be highly appreciated.
Thanks in Advance.