kubeconfig client to change namespace code example Example: kubectl change namespace kubectl config set-context --current --namespace=my-namespace