Broadcom-VMware
5V0-23.20 · Question #78
Which Kubernetes Service Types exposes the service externally using a static port?
The correct answer is B. NodePort. In a NodePort service, Kubernetes allocates a static port on each node in the cluster. This port is used to expose the service externally. Clients can reach the service using the node's IP address and the allocated static port.
vSphere with Tanzu Architecture and Technologies
Question
Which Kubernetes Service Types exposes the service externally using a static port?
Options
- AHeadless
- BNodePort
- CExternalName
- DClusterIP
How the community answered
(33 responses)- A12% (4)
- B79% (26)
- C3% (1)
- D6% (2)
Explanation
In a NodePort service, Kubernetes allocates a static port on each node in the cluster. This port is used to expose the service externally. Clients can reach the service using the node's IP address and the allocated static port.
Topics
#Kubernetes Service types#NodePort#external exposure#static port
Community Discussion
No community discussion yet for this question.