[Openshift] Adding a NodeSelector on the Fly
This is snippet code for adding a specific nodeselector to a rc (ReplicationConfig)
oc patch rc simple-helloworld -p '{"spec": {"template": {"spec": {"nodeSelector": {"infra": "my-infra-node"}}}}}' -n dev
The same code should work for other type, such as Deployment, or DeploymentConfig.
No Comments