Patch resource field kubectl

Inline JSON patch without editing the whole manifest

kubectl patch deployment <name> -n <ns> -p '{"spec":{"replicas":2}}'
more kubectl all 73 commands →