Scoped cleanup and milestone review
Inventory before deletion
Finishing a lab is part of engineering. Record every explicitly created object and the resources its controllers create. This project has a dedicated namespace, two Deployments, two Services and a ConfigMap. ReplicaSets, Pods and EndpointSlices are generated in ordinary reconciliation. No PVC, PersistentVolume, LoadBalancer or external database is intended. A namespace alone does not prove ownership; confirm the namespace was created specifically for this lab and no unrelated objects are present.
Stop local access and remove exact objects
kubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n bookstore-milestone delete -f application.reviewed.yaml --wait=true --timeout=90sUse this optional static command only after stopping the port-forward and reviewing ownership of every object in the actual reviewed manifest in the approved disposable cluster. Do not delete an arbitrary namespace or use --all. Check remaining resources and deletion status; a timeout requires inspection rather than immediate force deletion.
Verify cleanup and preserve evidence
Compare the remaining inventory with resource-inventory.json. Check controller-owned descendants and any resources not represented in the original manifest. Only after confirming the dedicated namespace is empty of unrelated resources and approved for deletion should the learner remove it using the explicit lab kubeconfig and context. Verify NotFound, not an authorization failure. Some namespace-managed default objects may exist; account for them. Do not remove finalizers to hurry cleanup. Keep synthetic test results and manifest revisions, not real cluster credentials.
Milestone reasoning
Explain the request path from a client to the frontend, through the inventory Service to a ready inventory Pod. Explain why changing desired replicas leads controllers to reconcile, why a ConfigMap environment update requires container replacement to be observed, and why readiness is not the same as a successful business response. If one of two inventory Pods disappears, the Deployment controller seeks replacement; remaining ready endpoints may still serve requests, but uninterrupted success is not guaranteed.
Independent challenge
Read resource-inventory.json and diagnostic-cases.json. Write a three-step verification plan that checks controller state, backend endpoints and exact response content. Then list the five explicit application objects that may be deleted after review. State what must remain untouched in other-team and what evidence you need before deleting the dedicated namespace. Re-run the local smoke test as a final application-level check. This completes the beginner milestone, not a production readiness certification.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Scoped cleanup and milestone review — knowledge check
Apply the beginner milestone concepts using original offline fixtures.
What should happen before deleting the application resources?
Which object is not explicitly created by application.yaml?
What does a cleanup command timeout establish?
When is namespace deletion appropriate?
If an inventory Pod disappears, what is the expected controller response?