Search code examples
kuberneteskubernetes-pod

If POD has unique IP address, what will be the IP address of each container in POD?


Suppose I have 2 containers in POD. Will each POD have a unique IP address ? If so what will be the IP addresses of each container ?


Solution

  • All containers in pod share the same IP address and localhost. You must define different port number for each container.