Question 1 of 25
How many different Kubernetes service types can you define?
Show answer
How others answered
- C80%
- D20%
Explanation
The correct answer is: C. 4 Explanation: Kubernetes supports four different service types: ClusterIP: The default service type, which exposes the service on a cluster-internal IP. It is accessible only within the cluster. NodePort: Exposes the service on each node's IP at a static port. This makes the service accessible outside the cluster via : . LoadBalancer: Exposes the service externally using a cloud provider's load balancer. This service type automatically provisions a load balancer for the service. ExternalName: Maps the service to a DNS name by returning a CNAME record, redirecting traffic to an external service outside the Kubernetes cluster. These are the four primary service types in Kubernetes.
Adapted from community discussion by miskill · 2024-09-23 · 3 community upvotes. Third-party contribution; reviewed by our quality filter, not independently verified.
Supporting references