Step 1: Understand LoadBalancer external IP assignment
When a LoadBalancer service is created, the cloud provider assigns an external IP address to the service, visible in EXTERNAL-IP field.
Step 2: Recognize typical EXTERNAL-IP values
Initially, EXTERNAL-IP may show Pending, but after provisioning, it shows an actual external IP like 34.68.123.45.
Final Answer:
An external IP address like 34.68.123.45 -> Option A
Quick Check:
LoadBalancer EXTERNAL-IP = cloud IP address [OK]
Hint: LoadBalancer EXTERNAL-IP shows cloud IP, not ClusterIP [OK]
Common Mistakes:
Expecting <none> or ClusterIP in EXTERNAL-IP field
Confusing Pending state as final
Thinking LoadBalancer does not assign external IP
4. You created a LoadBalancer service but kubectl get svc shows EXTERNAL-IP as "Pending" indefinitely. What is the most likely cause?
medium
A. The Kubernetes cluster is not running on a cloud provider that supports LoadBalancer.
B. The service selector does not match any pods.
C. The service type is incorrectly set to ClusterIP.
D. The pod containers do not expose the correct port.
Solution
Step 1: Understand LoadBalancer external IP provisioning
LoadBalancer service requires cloud provider support to provision an external IP and load balancer.
Step 2: Identify cause of Pending EXTERNAL-IP
If the cluster runs on bare metal or unsupported environment, the external IP stays Pending indefinitely.
Final Answer:
The Kubernetes cluster is not running on a cloud provider that supports LoadBalancer. -> Option A
Quick Check:
Pending EXTERNAL-IP means no cloud LB support [OK]
Hint: Pending EXTERNAL-IP means no cloud load balancer support [OK]
Common Mistakes:
Blaming pod selector or ports for EXTERNAL-IP Pending
Confusing service type ClusterIP with LoadBalancer
Ignoring cluster environment limitations
5. You want to expose a Kubernetes app externally with a LoadBalancer service, but your cluster runs on bare metal without cloud support. Which approach will work best?
hard
A. Use ClusterIP service type and access pods internally only.
B. Change service type to NodePort and use external node IP with the node port.
C. Use LoadBalancer service type and wait for external IP assignment.
D. Delete the service and expose pods directly with hostPort.
Solution
Step 1: Recognize LoadBalancer limitation on bare metal
LoadBalancer service requires cloud provider support, which bare metal lacks, so it won't get an external IP.
Step 2: Choose alternative external exposure method
NodePort exposes the service on each node's IP at a static port, allowing external access without cloud load balancer.
Final Answer:
Change service type to NodePort and use external node IP with the node port. -> Option B
Quick Check:
Bare metal + external access = NodePort service [OK]
Hint: Bare metal clusters use NodePort for external access, not LoadBalancer [OK]
Common Mistakes:
Expecting LoadBalancer to work without cloud support
Using ClusterIP which is internal only
Exposing pods directly with hostPort is less flexible
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.