2 points · by Noah-Huppert · 8y ago · 2 comments
# Before
kubectl --namespace foo-bar get pods
kubectl --namespace foo-bar describe pod/bazz
kubectl --namespace foo-bar exec bazz
# After
kubens use foo-bar
kubectl get pods
kubectl describe pod/bazz
kubectl exec bazz
I hope this helps others who have encountered the same issue. kubectl config set-context your-context --namespace some-namespace