k8wiz
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.

Read more about Kubernetes