Kubernetes Service — Port, TargetPort, and NodePort

Tony Choe
Apr 25, 2021

NodePort — The port on the node that the service exposes itself externally.

Port — “Service’s port”. The port that the service exposes itself internally within the cluster.

TargetPort — “Container’s port”. The port on the container that listens to the service traffic.

--

--