kubectl get pods -n my-namespace
To switch to the prod namespace, you can use: kubectl change namespace
However, you can change the namespace in several effective ways: kubectl get pods -n my-namespace To switch to
Before we dive into changing namespaces, let's quickly review what namespaces are in Kubernetes. A namespace is a way to group resources, such as pods, services, and deployments, into a logical partition. This allows multiple teams or users to share the same cluster without conflicts. you can use: However
kubectl get pods -n my-namespace
alias kchns='kubectl config set-context --current --namespace'