0
0
Kubernetesdevops~5 mins

LoadBalancer service type in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the LoadBalancer service type in Kubernetes?
It exposes the service externally using a cloud provider's load balancer, distributing traffic to the service pods.
Click to reveal answer
beginner
How does a LoadBalancer service type differ from a ClusterIP service type?
ClusterIP exposes the service only inside the cluster, while LoadBalancer exposes it externally with a cloud load balancer.
Click to reveal answer
intermediate
Which cloud providers support the LoadBalancer service type in Kubernetes by default?
Popular cloud providers like AWS, GCP, and Azure support LoadBalancer service type by provisioning external load balancers automatically.
Click to reveal answer
intermediate
What happens when you create a LoadBalancer service in a Kubernetes cluster without cloud provider integration?
The service will be created but no external load balancer will be provisioned, so it won't be accessible outside the cluster.
Click to reveal answer
beginner
What key field must be set in a Kubernetes service manifest to create a LoadBalancer service?
The field 'spec.type' must be set to 'LoadBalancer' in the service manifest.
Click to reveal answer
What does the LoadBalancer service type do in Kubernetes?
AExposes the service externally using a cloud load balancer
BExposes the service only inside the cluster
CCreates a DNS record for the service
DScales the number of pods automatically
Which field in the service manifest defines the LoadBalancer type?
Aspec.type
Bspec.selector
Cmetadata.name
Dspec.ports
If your Kubernetes cluster is not on a cloud provider, what happens when you create a LoadBalancer service?
AThe service is exposed via NodePort
BAn external load balancer is created automatically
CThe service fails to create
DThe service is only accessible inside the cluster
Which cloud providers commonly support Kubernetes LoadBalancer services?
AAll on-premise clusters
BDigitalOcean only
CAWS, GCP, Azure
DLocal Minikube clusters
What is the main benefit of using a LoadBalancer service type?
AAutomatic pod scaling
BAutomatic external access with load balancing
CFaster pod startup times
DInternal DNS resolution
Explain how the LoadBalancer service type works in Kubernetes and when you would use it.
Think about how users outside the cluster reach your app.
You got /4 concepts.
    Describe the difference between ClusterIP, NodePort, and LoadBalancer service types in Kubernetes.
    Consider where the service is accessible from.
    You got /4 concepts.