Kubernetes
Easy
Commands
Which command would you use to create a new namespace called 'development'?
Select your answer:
Show answer and explanation
Answer: kubectl create namespace development
Explanation
The 'kubectl create namespace development' command creates a new namespace called 'development'. Namespaces provide a way to divide cluster resources between multiple users or projects.
More easy Kubernetes questions
- Which kubectl command would you use to edit a running deployment named 'web-app'?
- What is the purpose of a Kubernetes Secret?
- Which kubectl command would you use to view the resource usage of pods?
- What happens when you apply a resource that already exists in the cluster?
- Which command would you use to get the YAML definition of a running pod named 'web-app'?
- What is the purpose of the 'kubectl port-forward' command?