Set YAML field yq

In-place update of a YAML field

yq -i '.spec.replicas = 3' deployment.yaml
#yq