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

bug 1777206 Fix the process how to add interfaces

Currently multus-cni only supports to add interface to pod at creation.
Once created pod, multus-cni does not modify interfaces.
This change fix the document to align it, i.e. use 'oc create -f' command,
not 'oc edit'.
This commit is contained in:
Tomofumi Hayashi
2019-12-06 16:23:10 +09:00
committed by openshift-cherrypick-robot
parent 7d72a6231f
commit b048162bfb

View File

@@ -30,17 +30,9 @@ endif::sriov[]
.Procedure
To add a Pod to an additional network, complete the following steps:
To add a Pod with additional networks, complete the following steps:
. Edit the Pod resource definition. If you are editing an existing Pod, run the
following command to edit its definition in the default editor. Replace `<name>`
with the name of the Pod to edit.
+
----
$ oc edit pod <name>
----
. In the Pod resource definition, add the `k8s.v1.cni.cncf.io/networks`
. Create the Pod resource definition and add the `k8s.v1.cni.cncf.io/networks`
parameter to the Pod `metadata` mapping. The `k8s.v1.cni.cncf.io/networks`
accepts a comma separated string of one or more NetworkAttachmentDefinition Custom Resource (CR) names:
+
@@ -73,6 +65,12 @@ spec:
image: centos/tools
----
. Create the Pod by running the following command:
+
----
$ oc create -f pod.yaml
----
. Optional: Confirm that the annotation exists in the Pod CR by running the
following command. Replace `<name>` with the name of the Pod.
+