
This fixed pods not being able to ping each other by ip. I tried pinging each other by hostname (pod1), but that still didn’t work. I then found this answer https://stackoverflow.com/questions/45805483/kubernetes-pods-cant-resolve-hostnames that implies that hostnames are much longer than just the shown name in kubectl get pods
. Those long hostnames work. I do not entirely understand why one would create a hostname that includes the ip address in its name, but I will try to see if that fixed my issues.
I am sorry my comment offended you. I have deleted it. Thank you for sharing your view.