Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Extracts disk and uploads it to a container registry

Notifications You must be signed in to change notification settings

codingben/kubevirt-disk-uploader

Repository files navigation

KubeVirt Disk Uploader

Extracts disk and uploads it to a container registry.

Note: This repository is no longer maintained. Please refer to kubevirt/kubevirt-tekton-tasks to use this functionality.

About

A tool designed to automate the extraction of disk, rebuild as Container Disk and upload to the Container Registry.

Usage

These are the supported export sources:

  • VirtualMachine (VM)
  • VirtualMachineSnapshot (VM Snapshot)
  • PersistentVolumeClaim (PVC)

Data from the source can be exported only when it is not used.

Prerequisites

Parameters

  • Export Source Kind: Specify the export source kind (vm, vmsnapshot, pvc).
  • Export Source Namespace: The namespace of the export source.
  • Export Source Name: The name of the export source.
  • Volume Name: The name of the volume to export data.
  • Image Destination: Destination of the image in container registry ($HOST/$OWNER/$REPO:$TAG).
  • Push Timeout: The push timeout of container disk to registry.

Deploy kubevirt-disk-uploader within the same namespace of Export Source (VM, VM Snapshot, PVC):

kubectl apply -f kubevirt-disk-uploader.yaml -n $POD_NAMESPACE

Setting of environment variable POD_NAMESPACE overrides the value in --export-source-namespace if passed.

KubeVirt Documentation

Read more about the used API at KubeVirt Export API.