- Home
- All questions
- Question 124
CKA study material · question 124 of 1000
Which command fixes the namespace for all later kubectl commands in the current context?
Show the answer
Answer: C. kubectl config set-context --current --namespace <name>
set-context --current --namespace stores the namespace in the context, unlike a one-off --namespace flag.
Source: Namespaces (Kubernetes) — Setting the namespace preference