Kubernetes
Easy
Commands
Which command would you use to create a deployment from a YAML file?
Select your answer:
Show answer and explanation
Answer: kubectl apply -f deployment.yaml
Explanation
The 'kubectl apply -f deployment.yaml' command is used to create or update resources defined in a YAML file. It's the recommended way to manage Kubernetes resources declaratively.
More easy Kubernetes questions
- Which kubectl command would you use to get detailed information about a specific pod?
- What is a Kubernetes Namespace used for?
- What is the purpose of a ConfigMap in Kubernetes?
- Which command would you use to scale a deployment named 'nginx-deployment' to 5 replicas?
- Which kubectl command would you use to view all pods in all namespaces?
- Which command would you use to create a new namespace called 'development'?