Help with Istio overlay files for node affinity

I would like to use node affinity for the Istio components. In order to accomplish this, I’ve generated a manifest file. Once the manifest file has been generated, the affinity configuration looks like this:

affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- amd64
weight: 2
- preference:
matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- ppc64le
weight: 2
- preference:
matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- s390x
weight: 2
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- amd64
- ppc64le
- s390x

I would like for it to look like the following:

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kops.k8s.io/instancegroup
operator: In
values:
- ops-job-nodes
tolerations:
- effect: NoExecute
key: k8s.com/dedicated
operator: Equal
value: ops-server
For now I’m having to manually modify the generated yaml file to make these changes, but was wondering if I can make these changes with an overlay file and not manually make these changes? I am using Istio 1.4.7. Any help would be greatly appreciated. Thanks for your time.