diff --git a/modules/virt-creating-udn-namespace-cli.adoc b/modules/virt-creating-udn-namespace-cli.adoc index 3bb34308cc8f..800cd4303869 100644 --- a/modules/virt-creating-udn-namespace-cli.adoc +++ b/modules/virt-creating-udn-namespace-cli.adoc @@ -1,19 +1,20 @@ // Module included in the following assemblies: // -// * virt/vm_networking/virt-connecting-vm-to-primary-udn.adoc +// * virt/vm_networking/virt-connecting-vm-to-primary-udn.adoc -:_mod-docs-content-type: PROCEDURE -[id="virt-creating-udn-namespace-cli_{context}"] +:_mod-docs-content-type: PROCEDURE +[id="virt-creating-udn-namespace-cli_{context}"] = Creating a namespace for user-defined networks by using the CLI -You can create a namespace to be used with primary user-defined networks (UDNs) by using the CLI. +You can create a namespace to be used with primary user-defined networks (UDNs) by using the {oc-first}. .Prerequisites -* You have access to the cluster as a user with `cluster-admin` permissions. -* You have installed the OpenShift CLI (`oc`). +* You have access to the cluster as a user with `cluster-admin` permissions. +* You have installed the {oc-first}. .Procedure + . Create a `Namespace` object as a YAML file similar to the following example: + [source,yaml] @@ -21,7 +22,7 @@ You can create a namespace to be used with primary user-defined networks (UDNs) apiVersion: v1 kind: Namespace metadata: - name: udn_namespace + name: my-namespace labels: k8s.ovn.org/primary-user-defined-network: "" # <1> # ... @@ -32,5 +33,5 @@ metadata: + [source, terminal] ---- -oc apply -f .yaml ----- \ No newline at end of file +$ oc apply -f .yaml +----