OpenShift Node Selector Operations
Jump to navigation
Jump to search
Internal
Overview
Operations to manipulate node selectors.
Configuring a Cluster-Wide Default Node Selector
Sets up a cluster-wide default node selector.
Configuring a Per-Project Node Selector
The per-project node selector can be set up when the project is created:
oadm new-project <project-name> --node-selector='keyA=valueA,keyB=valueB'
More details in:
The node selector can be added after the project was created by editing the project metadata with oc edit:
oc edit project <my-project>
... metadata: annotations: openshift.io/node-selector: "env=infra" ...