Distributing pod replicas evenly on available nodes using "PodAntiAffinity"

Solution Verified - Updated -

Issue

  • How to configure deployment to place pod replicas on different nodes?
  • How to ensure the scheduler does not co-locate replicas on a single node?
  • How to distribute pod replicas evenly on available nodes?
  • How to balance pods across available nodes to limit impact if one node goes down?

Environment

  • Red Hat OpenShift Container Platform (RHOCP) - 4.x
  • Red Hat OpenShift Service on AWS (ROSA)
  • Azure Red Hat OpenShift (ARO)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content