You are viewing documentation for a release that is no longer maintainedSee documentation for the latest supported version 3 or the latest supported version 4.
7.18.11.3. 模板:空白磁盘镜像的数据卷配置文件
blank-image-datavolume.yaml
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: blank-image-datavolume
spec:
source:
blank: {}
pvc:
# Optional: Set the storage class or omit to accept the default
# storageClassName: "hostpath"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:name: blank-image-datavolume
spec:source:blank:{}pvc:# Optional: Set the storage class or omit to accept the default# storageClassName: "hostpath"accessModes:- ReadWriteOnce
resources:requests:storage: 500Mi
Copy to ClipboardCopied!Toggle word wrapToggle overflow