Read YAML field yq

Extract a value from a YAML file

yq '.spec.replicas' deployment.yaml
#yq