Say, I have two namespaces k8s-app1 and k8s-app2
I can list all pods from specific namespace using the below command
kubectl get pods -n
You could use the following package called kubectx which make it very easy to switch between clusters using kubectx
and switching between namespaces using kubens