True or False? By default there is no communication between two Pods in two different namespaces
Answer
False. By default two Pods in two different namespaces are able to communicate with each other.
Try it for yourself:
kubectl run test-prod -n prod --image ubuntu -- sleep 2000000000 kubectl run test-dev -n dev --image ubuntu -- sleep 2000000000
k describe po test-prod -n prod to get the IP of test-prod Pod.
Access dev Pod: kubectl exec --stdin --tty test-dev -n dev -- /bin/bash
And ping the IP of test-prod Pod you get earlier.You'll see that there is communication between the two pods, in two separate namespaces.