Which Kubernetes Service Types exposes the service externally using a static port?
Which Kubernetes Service Types exposes the service externally using a static port?
NodePort is the Kubernetes Service Type that exposes the service externally using a static port. In a NodePort service, Kubernetes assigns a static port on every node in the cluster, which allows external clients to access the service using the node's IP address and the allocated static port.
I will go with B, here's why: https://medium.com/google-cloud/kubernetes-nodeport-vs-loadbalancer-vs-ingress-when-should-i-use-what-922f010849e0 A. Headless - No, this is nonsense B. NodePort - Yes, a nodeport is a primitive way to provide external access to a service C. ExternalName - No, this doesn't provide any access to anything, it's a name D. ClusterIP - No, ClusterIP is always internal
B Node Port
The Kubernetes Service Type that exposes the service externally using a static port 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.