Pods and Scheduling
Learn about Pods and their scheduling.
We'll cover the following...
Kubernetes guarantees to schedule all containers in the same Pod to the same cluster node. Despite this, you should only put containers in the same Pod if they need to share resources such as memory, volumes, and networking. If your only requirement is to schedule two workloads to the same node, you should put them in their own Pods and use one of the following options to schedule them together.
Note: Before going any further, remember that nodes are host servers that can be physical servers, virtual machines, or cloud instances. Pods wrap containers and execute on nodes.
Pods provide a lot of advanced scheduling features, including all of the following:
nodeSelectors
Affinity and anti-affinity
Topology spread constraints ...