NodePort

A Service type that opens the same port, by default in the range 30000 to 32767, on every node and forwards it to the Service.

It exposes the Service on every node's address, which may be reachable from outside the cluster.

In more detail

Anyone who can reach any node on that port reaches the Service, so it widens the traffic boundary to the whole node network. It still has a ClusterIP and the same selector. It is useful for local clusters and as a building block for external load balancers.

Example

type: NodePort
ports:
  - port: 80
    targetPort: 8080
    nodePort: 30080

Related terms

Related guides

Taught in

References

Certification courses