"Aswan": K8s Service Connectivity Failure
Scenario: "Aswan": K8s Service Connectivity Failure
Level: Medium
Type: Fix
Tags: kubernetes
Access: Email
Description: Our microservices application on Kubernetes cannot reach the backend-db service from the frontend deployment; curl from the frontend pod fails.
Your task is to diagnose and fix the connectivity problems so the frontend can reach the backend database. There may be more than one issue.
NOTE: wait for all the pods to be running at the beginning of the exercise.
Root (sudo) Access: True
Test: Curl from inside the frontend pod to the backend-db service returns "Hello from Backend DB!": FRONTEND_POD=$(kubectl get pods -l app=frontend -o jsonpath='{.items[0].metadata.name}')
kubectl exec $FRONTEND_POD -- curl -s backend-db returns "Hello from Backend DB!"
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 20 minutes.