<p>It would be useful for me to be able to define at a higher level a way to determine a set of nodes that a set of pods should run ontop of.</p>

<p>Is there a way to use kustomize so that i can specify what nodeSelectors a deployment should have?</p>

<p>i ended up just defining a patch:</p>

<p>in <code>kustomization.yaml</code>:</p>

<pre><code>patchesStrategicMerge:
- nodeSelectors.yaml
</code></pre>

<p>in <code>nodeSelectors.yaml</code></p>

<pre><code>apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: mysql
spec:
  template:
    spec:
      nodeSelector:
        group: infra
        slurm: mysql
</code></pre>

<p>bit long winded; but i guess it gives the most flexibility in terms of defining which pods i care ping and where.</p>
