What is NodePort?
A NodePort is a way to enable Kubernetes services to receive traffic from outside the cluster. In a NodePort, the Kubernetes API server allocates a specific port on each node in a cluster. Each node proxies any traffic received on the specific port to the Kubernetes service.
Using NodePorts as a general-purpose way to route traffic to Kubernetes services is not recommended; use an ingress controller instead.