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

Read more about Kubernetes