Kubernetes Service Types
CONCEPTS:Kubernetes Architecture
Question Variations
- "What are the different types of Services in Kubernetes, and when would you use each?"
- "Explain the difference between `ClusterIP` and `NodePort`."
- "How does a `LoadBalancer` service type interact with cloud providers (AWS/GCP/Azure)?"
- "What is an Ingress, and how does it differ from a Service of type `LoadBalancer`?"
Why This Is Asked
Exposing applications is a core task in Kubernetes. This question tests whether a candidate understands the different ways to route traffic to Pods and when to use internal vs. external exposure.
Key Concepts
- ClusterIP: Internal-only communication.
- NodePort: Exposing a service on a static port on each Node’s IP.
- LoadBalancer: Using a cloud provider’s external load balancer.
- ExternalName: Mapping a service to a DNS name.
Question Variations
- “What are the different types of Services in Kubernetes, and when would you use each?”
- “Explain the difference between
ClusterIPandNodePort.” - “How does a
LoadBalancerservice type interact with cloud providers (AWS/GCP/Azure)?” - “What is an Ingress, and how does it differ from a Service of type
LoadBalancer?”