Containers in the same Pod can communicate with each other using localhost and then the port number exposed by the other container in Kubernetes. The IP address of a container in a Pod can be used to connect to another Pod.