1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/virt-dv-annotations.adoc
Matthew Garrell 9e0819e91b CNV10206 Adding info about sidecar injection and annotations
CNV10206 Updating based on code review comments

CNV10206 Removing old files as part of code review

Changing DV annotation example based on QE review

Updating based on peer review

Updating based on secondary peer review comments
2021-06-11 18:42:20 +00:00

32 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/virtual_disks/virt-managing-data-volume-annotations.adoc
[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: dv-ann
annotations:
v1.multus-cni.io/default-network: bridge-network <1>
spec:
source:
http:
url: "example.exampleurl.com"
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
----
<1> Multus network annotation