containerized-data-importer/doc/blank-raw-image.md
Michael Henriksen 9e2c79b1e0
move api groups to v1beta1 (#1232)
* move upload.cdi.kubevirt.io API group to v1beta1

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* move core api to v1beta1

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* fix os-3.11 cluster sync and add functional tests for alpha api

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* change more occurences of v1alpha1

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* updates after rebase

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-07-10 15:47:38 +02:00

862 B

How to create Blank Raw Image User Guide

The purpose of this document is to show how to create a data volume containing a new blank raw image.

Prerequesites

You have a Kubernetes cluster up and running with CDI installed and at least one PersistentVolume is available or can be created dynamically.

Create Blank Raw Image with DataVolume manifest

Create the following DataVolume manifest:

apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
  name: blank-image-datavolume
spec:
  source:
      blank: {}
  pvc:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 500Mi

Deploy the DataVolume manifest:

kubectl create -f blank-image-datavolume.yaml

An importer pod will be spawned and the new image will be created on your PV.