
Answer-first summary for fast verification
Answer: kubectl create ns production
To create a new namespace in Kubernetes, the correct command is `kubectl create namespace`. This command allows you to logically isolate your deployments within the Kubernetes cluster. For more details, refer to the Kubernetes documentation on namespaces.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
When preparing to deploy a CI pipeline on GCP, you need 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 ns production
C
kubectl ns create production
D
kubectl create namespace production
No comments yet.