I have a question related to openshift pod tolerations.
According to the document, tolerations are defined in
Adding the same tolerations to hello-world pod will change the state to running but if I want to scale to 10 pods, then I would have to manually add tolerations to all 10 pods.
Is there a better way, without removing the node taints?
pod. Spec
not in deployment/deploymentconfigs
Here is the scenario, 3 master nodes with following taints, no other nodes
oc adm taint node master01 want=food:NoSchedule
oc adm taint node master02 want=drink:NoSchedule
oc adm taint node master03 want=money:NoSchedule
After deploying a simple hello-world app, not a surprise that pod stucks in pending state because pod doesn't have any tolerations
Name READY STATUS RESTARTS AGE
hello-world-1-build 0/1 Pending 0 5s
Now add a toleration that tolerates all taints to hello-world-1-build
tolerations:
- operator: Exists
Now build is running but the application pod still in pending state, because I only added toleration to build pods.

Asked by Ask and Learn
(1895 rep)
Oct 18, 2022, 10:57 AM
Last activity: Jun 24, 2025, 11:43 AM
Last activity: Jun 24, 2025, 11:43 AM