How to distribute pod replicas across multiple nodes to use local disks in OpenShift 4?

Solution Unverified - Updated -

Issue

  • The application, such as a distributed database, requires each pod replica to run on a different node to use that node's local storage.
  • When using Deployment, all pod replicas are scheduled on the same node.
  • How can pods be distributed across multiple nodes, with each pod using its own local PersistentVolume(PV)?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x
  • Storage that uses node-local disks, such as:
    • Local Storage Operator
    • LVM Storage Operator (TopoLVM)

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