1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/virt-dv-annotations.adoc
Avital Pinnick 63a79c984b [enterprise-4.14] CNV storage updates
Signed-off-by: Avital Pinnick <apinnick@redhat.com>
2023-09-28 14:34:18 +03:00

24 lines
920 B
Plaintext

// Module included in the following assemblies:
//
// * virt/storage/virt-managing-data-volume-annotations.adoc
:_content-type: REFERENCE
[id="virt-dv-annotations_{context}"]
= Example: Data volume annotations
This example shows how you can configure data volume (DV) annotations to control which network the importer pod uses. The `v1.multus-cni.io/default-network: bridge-network` annotation causes the pod to use the multus network named `bridge-network` as its default network.
If you want the importer pod to use both the default network from the cluster and the secondary multus network, use the `k8s.v1.cni.cncf.io/networks: <network_name>` annotation.
.Multus network annotation example
[source,yaml]
----
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: datavolume-example
annotations:
v1.multus-cni.io/default-network: bridge-network <1>
# ...
----
<1> Multus network annotation