Argo

You deployed a new application in a namespace called "yay" but when running kubectl get ns yay you see there is no such namespace. What happened?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Deploying applications in non-existing namespaces doesn't create the namespace. For that you have to explicitly mark "Auto-create namespace".

To fix it, you can simply run kubectl create namespace NAMESPACE_NAME but it's better of course to have it stored in Git rather than running kubectl commands.