Verify a multi-service deployment
Three independent checks
Deployment rollout status, endpoint readiness and a correct response answer different questions. A successful rollout says the controller observed a completed rollout; it does not prove application behavior. An EndpointSlice with ready backends gives evidence of selection and readiness; it does not guarantee every client can reach them. A response checks the particular request path at that moment. Use all three rather than relying on Pod phase alone.
Inspect the approved lab only
kubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n bookstore-milestone rollout status deployment/inventory --timeout=90skubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n bookstore-milestone rollout status deployment/frontend --timeout=90skubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n bookstore-milestone get endpointslices -l kubernetes.io/service-name=inventoryStatic commands for an authorized disposable cluster, after the setup and image-review prerequisites in the project README. No output has been observed from kubectl in this package. In a healthy hypothetical rollout, expect two ready inventory replicas, one ready frontend replica and two ready inventory endpoints (after reconciliation).
Check the response without public exposure
kubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n bookstore-milestone port-forward --address 127.0.0.1 service/frontend 18080:80# In another terminal:curl --fail-with-body --max-time 5 http://127.0.0.1:18080/A port-forward is a temporary TCP path to a selected Pod, not a production ingress or a test of frontend Service load balancing. The frontend still needs to call its inventory Service. Stop the forward when finished. Compare the returned JSON with the expected fixture. A 200 with incorrect stock is a failing application test.
Diagnose a ready but broken application
The frontend readiness endpoint in this toy app reports process-local readiness. If the inventory Service selector has a typo, its Deployment can still have two ready Pods but the Service may have no matching endpoints. A normal frontend request can return 503 while /ready returns 200. First inspect selectors and labels; if endpoints exist, check the target port, listener, DNS and connectivity in that order as evidence suggests. Do not restart or disable probes blindly. A dependency-aware readiness policy may be appropriate for some apps but can also amplify outages; choose deliberately.
Local tests and their limits
From the fixture directory run python test_app.py. The tests use loopback HTTP servers with ephemeral ports and compare successful results, an unknown path, and a backend error. They also show that frontend readiness stays successful during the simulated backend error. The tests do not check Kubernetes scheduling, image building, DNS, EndpointSlices, RBAC or actual probe behavior.
Practice: repair a selector
Compare broken-inventory-service.yaml with the inventory Deployment template in application.yaml. The name label is inventory-typo instead of inventory. Restore the exact selector value in a working copy, predict endpoint selection and state which live checks would still be needed. Inspect diagnostic-cases.json for a second scenario with endpoints but the wrong port.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Verify a multi-service deployment — knowledge check
Apply the beginner milestone concepts using original offline fixtures.
Both Deployments are ready but inventory has zero endpoints. What should you inspect first?
What does a 200 response with totalStock 4 mean in this fixture?
What does frontend /ready report in this toy app during backend failure?
What does port-forward to a Service test directly?
What does the local smoke test establish?