Kubernetes
Easy
Commands
Which kubectl command would you use to edit a running deployment named 'web-app'?
Select your answer:
Show answer and explanation
Answer: kubectl edit deployment web-app
Explanation
The 'kubectl edit deployment web-app' command opens the deployment manifest in your default editor, allowing you to make changes. After saving and exiting, Kubernetes will apply the changes to the running deployment.
More easy Kubernetes questions
- 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?
- What happens to a pod's data when it is deleted?