Kubernetes Deep Dive Room

Sign Up Free or Log In to participate!

When i launched 3 pods, two pods got launched in one node. How can i equally distribute them among 3 nodes?

When i launched 3 pods, two pods got launched in one node. How can i equally distribute them among 3 nodes?

John L

Hi Harshit, need a little more information to be sure. If you create a replicaset or deployment it should even distribute the pods across all nodes that have available resources. The key there is "have available resources." If the nodes are not all part of a larger group then there really isn’t a mechanism for guaranteeing nodes are evenly spread. It’s dependent on the scheduling algorithm. It does seem common, especially in some cloud vendors, that scheduling seems to favor certain nodes but I’ve never found an explanation for that. The ‘events’ should help you understand how the scheduling decisions are made. If there are reasons a pod can’t be scheduled you should see messaging.

0 Answers

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?