If there is no target port in service file it just matches the port number right . . .

Allen Ho:
If there is no target port in service file it just matches the port number right?
Is there a way to know the port your container in your pod exposes?

Omprakash Kalagoni:
Please use kubectl describe pod podname | grep “Port”