How to distribute pod replicas across multiple nodes to use local disks in OpenShift 4?
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.