OpenShift Node Selector Operations: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
More details in: {{Internal|oadm new-project|oadm new-project}} | More details in: {{Internal|oadm new-project|oadm new-project}} | ||
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: | |||
<b>openshift.io/node-selector: "env=infra"</b> | |||
... | |||
=Configuring a Per-Pod Node Selector= | =Configuring a Per-Pod Node Selector= |
Revision as of 04:37, 6 July 2017
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" ...