11.10. Managing data volume annotations
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.
11.10.1. 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:
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: datavolume-example
annotations:
v1.multus-cni.io/default-network: bridge-network
# ...
The v1.multus-cni.io/default-network annotation specifies the Multus network name.