getting a pod's port mapping..

Is there any way to use an API to find out the port mappings of the externally exposed ports for a particular pod?
Was this page helpful?