Skip to content

Commit 6ab6ac1

Browse files
authored
Merge pull request #33116 from mgarrellRH/CNV10206
CNV-10206: Adding info about DV annotations
2 parents 5559d01 + dcdcdac commit 6ab6ac1

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,8 @@ Topics:
27582758
File: virt-reserving-pvc-space-fs-overhead
27592759
- Name: Configuring CDI to work with namespaces that have a compute resource quota
27602760
File: virt-configuring-cdi-for-namespace-resourcequota
2761+
- Name: Managing data volume annotations
2762+
File: virt-managing-data-volume-annotations
27612763
- Name: Using preallocation for data volumes
27622764
File: virt-using-preallocation-for-datavolumes
27632765
- Name: Uploading local disk images by using the web console

modules/virt-dv-annotations.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virtual_disks/virt-managing-data-volume-annotations.adoc
4+
5+
[id="virt-dv-annotations_{context}"]
6+
= Example: Data volume annotations
7+
8+
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.
9+
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.
10+
11+
.Multus network annotation example
12+
[source,yaml]
13+
----
14+
apiVersion: cdi.kubevirt.io/v1beta1
15+
kind: DataVolume
16+
metadata:
17+
name: dv-ann
18+
annotations:
19+
v1.multus-cni.io/default-network: bridge-network <1>
20+
spec:
21+
source:
22+
http:
23+
url: "example.exampleurl.com"
24+
pvc:
25+
accessModes:
26+
- ReadWriteOnce
27+
resources:
28+
requests:
29+
storage: 1Gi
30+
----
31+
<1> Multus network annotation
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[id="virt-virt-managing-data-volume-annotations"]
2+
= Managing data volume annotations
3+
include::modules/virt-document-attributes.adoc[]
4+
:context: virt-managing-data-volume-annotations
5+
6+
toc::[]
7+
8+
Data volume (DV) annotations allow you to manage pod behavior. You can add one or more annotations to a data volume, which then propagates to the created importer pods.
9+
10+
include::modules/virt-dv-annotations.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)