Skip to content

Commit dcdcdac

Browse files
author
Matthew Garrell
committed
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
1 parent 4d926b5 commit dcdcdac

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
@@ -2770,6 +2770,8 @@ Topics:
27702770
File: virt-reserving-pvc-space-fs-overhead
27712771
- Name: Configuring CDI to work with namespaces that have a compute resource quota
27722772
File: virt-configuring-cdi-for-namespace-resourcequota
2773+
- Name: Managing data volume annotations
2774+
File: virt-managing-data-volume-annotations
27732775
- Name: Using preallocation for data volumes
27742776
File: virt-using-preallocation-for-datavolumes
27752777
- 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)