QuestionQ93

VerifiedKubernetes Fundamentals

A data science team is deploying a machine-learning workload that performs best on nodes labeled disk=ssd. However, the Pods must still be able to run on other nodes when no SSD nodes are available. Which scheduling rule should they configure?

Explanation

Kubernetes preferredDuringSchedulingIgnoredDuringExecution node affinity is a soft scheduling preference: the scheduler favors nodes matching disk=ssd, but can schedule the Pod on a nonmatching node when no preferred node is available. requiredDuringSchedulingIgnoredDuringExecution would make the SSD label mandatory and prevent that fallback behavior. Kubernetes: Assigning Pods to Nodes

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!