Bird
0
0

You created a LoadBalancer service but the external IP is stuck at <pending>. What command helps you check the cloud provider's load balancer status?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Services
You created a LoadBalancer service but the external IP is stuck at <pending>. What command helps you check the cloud provider's load balancer status?
Akubectl logs my-service
Bkubectl get pods
Ckubectl get nodes
Dkubectl describe svc my-service
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to check service details

    kubectl describe svc shows detailed info including events and cloud provider load balancer status.
  2. Step 2: Eliminate other commands

    kubectl get pods shows pods, logs show pod logs, get nodes shows nodes, none show load balancer status.
  3. Final Answer:

    kubectl describe svc my-service -> Option D
  4. Quick Check:

    Check LoadBalancer status with describe svc [OK]
Quick Trick: Use 'kubectl describe svc' to see LoadBalancer provisioning details [OK]
Common Mistakes:
  • Using pod commands to check service status
  • Expecting logs to show load balancer info
  • Checking nodes instead of service details

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes