Mastering Pod Scheduling With Affinity, Taints & Priority
Pod scheduling in Kubernetes explained: affinity (node & pod), nodeName/nodeSelector, taint/tolerations, priority & priorityclass. Learn how to schedule pods with specific requirements.
This is a quick recap for the points of pod schedual, details can click each title link or the final reference. 1. Affinity nodeAffinity and nodeAntiAffinity node labels podAffinity and podAntiAffinity pod labels requiredDuringSchedulingIgnoredDuringExecution and preferredDuringSchedulingIgnoredDuringExecution topologyKey 2. nodeName/nodeSelector spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssd --- spec: nodeName: foo-node # schedule pod to specific node containers: - name: nginx i...