Bird
0
0

What is the first step to verify if a Kubernetes service is reachable from a pod?

easy📝 Conceptual Q1 of 15
Kubernetes - Troubleshooting
What is the first step to verify if a Kubernetes service is reachable from a pod?
ACheck the pod's logs for errors
BRestart the Kubernetes cluster
CPing the service IP from the pod
DVerify the service's endpoints exist
Step-by-Step Solution
Solution:
  1. Step 1: Check service endpoints

    Endpoints show which pods the service routes to. Without endpoints, service is unreachable.
  2. Step 2: Confirm connectivity after endpoints exist

    Once endpoints are verified, test connectivity from pod to service IP.
  3. Final Answer:

    Verify the service's endpoints exist -> Option D
  4. Quick Check:

    Service endpoints = connectivity check [OK]
Quick Trick: Always check endpoints before testing service connectivity [OK]
Common Mistakes:
  • Trying to ping service IP before confirming endpoints
  • Ignoring endpoints and checking pod logs first
  • Restarting cluster unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes