Which of the following service types exposes a service on a static port on each node's IP address?
Trap 1: ExternalName
ExternalName maps the service to an external DNS name, not a node port.
Trap 2: LoadBalancer
LoadBalancer provides an external load balancer but relies on NodePort or ClusterIP underneath.
Trap 3: ClusterIP
ClusterIP only exposes the service internally within the cluster.
- A
ExternalName
Why wrong: ExternalName maps the service to an external DNS name, not a node port.
- B
NodePort
NodePort exposes the service on a static port on each node's IP address.
- C
LoadBalancer
Why wrong: LoadBalancer provides an external load balancer but relies on NodePort or ClusterIP underneath.
- D
ClusterIP
Why wrong: ClusterIP only exposes the service internally within the cluster.