Edit a live object
high risk
kubectl get deploy/<name> -o yaml > backup.yamlBack up firstkubectl diff -f <manifest>Change via a reviewed manifest insteadOpens the live object in $EDITOR. See the flags and examples below, and run `man kubectl` for the full reference.
kubectl edit deploy/web -n prodEdit a deployment · explain & risk-check →Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.