kubectl edit deploy/web

Category: Kubernetes & Containers

kubectl edit deploy/web

Edit a deployment in your editor

Opens the deployment's live spec in your default editor, applies your changes on save, and shows the diff. Kubernetes validates the edited object before applying. For scripted changes prefer kubectl patch or kubectl set image.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.