what is the difference between nodePort, port and targetPort
Hello,
-
nodePort
: The port on the node where external traffic will come in on -
port
: The port of this service -
targetPort
The target port on the pod(s) to forward traffic to
Traffic comes in on nodePort
, forwards to port
on the service which then routes to targetPort
on the pod(s).