If I expose a deployment externally via service using NodePort. If the port is n . . .

Pradeep:
If I expose a deployment externally via service using NodePort. If the port is not specified, can I leave the nodeport option blank while creating or is there a default like 30080 or something that I have to use?

Deepak Ladwa:
port - mandatory
targetport & nodeport are optional If not specificed. Then targetport will be used as that of port and nodeport will be assigned from range 30000 - 32767

Pradeep:
Thank you