Persist a default namespace for the current context.
Section: Setup, Contexts, and Cluster Info
Set default namespace for context
bash
bash
kubectl config set-context --current --namespace=paymentsExplanation
Persist a default namespace for the current context.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Setup, Contexts, and Cluster Info