-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CDI lab to match the current usage
The CDI lab in kubevirt.io contains out-of-date processes and information, to the point where it recommends the creation of a PVC with import annotations instead of a DataVolume. This commit updates it to match the expected usage. Signed-off-by: Alvaro Romero <[email protected]>
- Loading branch information
Showing
2 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
24 changes: 11 additions & 13 deletions
24
_includes/scriptlets/lab2/06_create_fedora_cloud_instance.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
cat <<EOF > pvc_fedora.yml | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
cat <<EOF > dv_fedora.yml | ||
apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: "fedora" | ||
labels: | ||
app: containerized-data-importer | ||
annotations: | ||
cdi.kubevirt.io/storage.import.endpoint: "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-36-1.5.x86_64.raw.xz" | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
storage: | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
source: | ||
http: | ||
url: "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-36-1.5.x86_64.raw.xz" | ||
EOF | ||
|
||
kubectl create -f pvc_fedora.yml | ||
kubectl create -f dv_fedora.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters