
Answer-first summary for fast verification
Answer: kubectl create ns production
The correct command to create a Kubernetes namespace named 'production' is `kubectl create ns production`. This command is straightforward and effectively creates the namespace. Alternatively, `kubectl create namespace production` can also be used as it is equivalent. For further learning, consider exploring this [Codelabs tutorial](https://codelabs.developers.google.com/codelabs/cloud-builder-gke-continuous-deploy/index.html#3).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is preparing to deploy a CI pipeline on Google Cloud Platform (GCP). To ensure the deployment is logically isolated, you need to create a Kubernetes namespace named 'production'. Which Kubernetes command should you use? (Select One)
A
kubectl namespace create production
B
kubectl create name production
C
kubectl ns create production
D
kubectl create ns production
No comments yet.