1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

GitHub-43667: Updating procedure to edit a namespace

This commit is contained in:
Andrea Hoffer
2022-07-26 12:39:21 -04:00
committed by openshift-cherrypick-robot
parent 410992a937
commit fd3de6bd5d

View File

@@ -29,18 +29,18 @@ You can add additional key/value pairs to a pod. But you cannot add a different
To add a default project node selector:
. Create a project or edit an existing project to add the `openshift.io/node-selector` parameter:
. Create a namespace or edit an existing namespace to add the `openshift.io/node-selector` parameter:
+
[source,terminal]
----
$ oc edit project <name>
$ oc edit namespace <name>
----
+
.Example output
[source,yaml]
----
apiVersion: project.openshift.io/v1
kind: Project
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: "type=user-node,region=east" <1>