The Monster Market was written down in ~/archive-11g609u/ and never applied correctly. One Deployment, cache, is missing from the archive entirely.
ls ~/archive-11g609u
kubectl get deploy,svc,pods -n anatomy-11g609uFix the archive
A Service is already applied. Apply the rest one file at a time and read each error:
kubectl apply -f ~/archive-11g609u/web.yaml -n anatomy-11g609u
kubectl apply -f ~/archive-11g609u/api.yaml -n anatomy-11g609u
kubectl apply -f ~/archive-11g609u/db.yaml -n anatomy-11g609uExpect one wrong apiVersion (kubectl api-resources lists the right one), one selector that does not match its template, and one YAML indentation fault. Fix the files, apply again, and confirm every Deployment is READY.
The Service web applied without error. That is the fourth fault. Compare its selector with the labels on the web Pods:
kubectl get svc web -n anatomy-11g609u -o jsonpath='{.spec.selector}'
kubectl get pods -n anatomy-11g609u --show-labels
kubectl describe svc web -n anatomy-11g609uFix web-svc.yaml so the selector is app: web, and apply it.
Rebuild the missing file
The namespace reference-11g609u runs the only copy of cache. Export it, point it at anatomy-11g609u, and apply it:
kubectl get deploy cache -n reference-11g609u -o yaml > ~/archive-11g609u/cache.yaml
sed -i 's/namespace: reference-11g609u/namespace: anatomy-11g609u/' ~/archive-11g609u/cache.yaml
kubectl apply -f ~/archive-11g609u/cache.yamlThe exported file carries uid, resourceVersion and status. apply accepts them.
The last objective is a question: cache had no file anywhere, so where did the cluster keep it?