Kubectl Change Namespace -

kubectl get namespaces

This command retrieves a list of pods in the my-namespace namespace. kubectl change namespace

To set the current namespace to dev , use: kubectl get namespaces This command retrieves a list

kubectl get pods -n my-namespace