nodeSelector vs Affinity
Pods should prefer nodes labelled disk=ssd, but still run elsewhere if none is free. What do you use?
disk=ssd
Choose one answer
preferredDuringSchedulingIgnoredDuringExecution node affinity
preferredDuringSchedulingIgnoredDuringExecution
requiredDuringSchedulingIgnoredDuringExecution node affinity
requiredDuringSchedulingIgnoredDuringExecution
nodeSelector: { disk: ssd }
A taint disk=ssd:NoSchedule on the SSD nodes, with a toleration on the pods
disk=ssd:NoSchedule