- Create your provisioner, important thing to add is a custom label and a value that we will use in node affinity on our pod.
- In your deployment, add under spec.template.spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-pool
operator: In
values:
- test-pool
as node-pool is your custom label and test-pool is the value that werte defined in the provisioner.