
Answer-first summary for fast verification
Answer: kubectl create ns production
The correct command is `kubectl create ns production` (or equivalently, `kubectl create namespace production`). This command creates a new namespace in Kubernetes, which is essential for logically isolating deployments. For further learning, exploring Kubernetes Codelabs is highly recommended.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is preparing to deploy a CI pipeline on Google Cloud Platform and needs to ensure the correct syntax for creating a Kubernetes namespace named 'production' to logically isolate the deployment. Which Kubernetes command accomplishes this?
A
kubectl namespace create production
B
kubectl create name production
C
kubectl create ns production
D
kubectl ns create production
No comments yet.