File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 66[id="virt-creating-udn-namespace-cli_{context} "]
77= Creating a namespace for user-defined networks by using the CLI
88
9- You can create a namespace to be used with primary user-defined networks (UDNs) by using the CLI .
9+ You can create a namespace to be used with primary user-defined networks (UDNs) by using the {oc-first} .
1010
1111.Prerequisites
12- * You have access to the cluster as a user with `cluster-admin` permissions.
13- * You have installed the OpenShift CLI (`oc` ).
1412
13+ * You have access to the cluster as a user with `cluster-admin` permissions.
14+ * You have installed the {oc-first} .
1515
1616.Procedure
17+
1718. Create a `Namespace` object as a YAML file similar to the following example:
1819+
1920[source,yaml]
2021----
2122apiVersion: v1
2223kind: Namespace
2324metadata:
24- name: udn_namespace
25+ name: my-namespace
2526 labels:
2627 k8s.ovn.org/primary-user-defined-network: "" # <1>
2728# ...
@@ -32,5 +33,5 @@ metadata:
3233+
3334[source, terminal]
3435----
35- oc apply -f <filename >.yaml
36+ $ oc apply -f <filename >.yaml
3637----
You can’t perform that action at this time.
0 commit comments