Recall & Review
beginner
What is the first step to check when a Kubernetes service is not reachable?
Check if the pods behind the service are running and ready using
kubectl get pods and kubectl describe pod <pod-name>.Click to reveal answer
beginner
How can you verify the endpoints associated with a Kubernetes service?
Use
kubectl get endpoints <service-name> to see which pod IPs and ports the service routes to.Click to reveal answer
intermediate
What command helps you test connectivity from inside a pod to a service?
Use
kubectl exec -it <pod-name> -- curl <service-name>:<port> to test if the service is reachable from the pod.Click to reveal answer
intermediate
Why is checking the service type important when debugging connectivity?
Because service types like ClusterIP, NodePort, and LoadBalancer expose services differently, affecting how you can access them.
Click to reveal answer
advanced
What role do Network Policies play in service connectivity?
Network Policies can restrict or allow traffic to pods, so misconfigured policies can block service access.
Click to reveal answer
Which command shows the pods behind a Kubernetes service?
✗ Incorrect
The
kubectl get endpoints command lists the pods IPs and ports that a service routes to.What does a ClusterIP service type do?
✗ Incorrect
ClusterIP exposes the service only inside the Kubernetes cluster.
How can you test if a pod can reach a service?
✗ Incorrect
Using curl inside the pod tests if the service is reachable from that pod.
What might cause a service to be unreachable despite pods running?
✗ Incorrect
Network Policies can block traffic even if pods are running and endpoints exist.
Which command helps you see detailed info about a pod's status?
✗ Incorrect
The describe command shows detailed pod status and events.
Explain the steps you would take to debug why a Kubernetes service is not reachable from inside the cluster.
Think about checking pods, endpoints, connectivity tests, and network rules.
You got /5 concepts.
Describe how Network Policies can affect service connectivity in Kubernetes and how to verify if they are causing issues.
Focus on traffic rules and testing connectivity.
You got /4 concepts.