Chapter 16. Advanced scheduling
This chapter covers
- Using node taints and pod tolerations to keep pods away from certain nodes
- Defining node affinity rules as an alternative to node selectors
- Co-locating pods using pod affinity
- Keeping pods away from each other using pod anti-affinity
Kubernetes allows you to affect where pods are scheduled. Initially, this was only done by specifying a node selector in the pod specification, but additional mechanisms were later added that expanded this functionality. They’re covered in this chapter.
16.1. Using taints and tolerations to repel pods from certain nodes
The first two features related to advanced scheduling that we’ll explore here are the node taints and pods’ tolerations of those taints. They’re ...
Get Kubernetes in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.