Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingben/kubevirt-disk-uploader
Extracts disk and uploads it to a container registry
https://github.com/codingben/kubevirt-disk-uploader
containerdisks kubevirt
Last synced: 2 months ago
JSON representation
Extracts disk and uploads it to a container registry
- Host: GitHub
- URL: https://github.com/codingben/kubevirt-disk-uploader
- Owner: codingben
- Created: 2023-09-05T08:40:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-09T18:14:04.000Z (3 months ago)
- Last Synced: 2024-10-15T11:13:58.259Z (3 months ago)
- Topics: containerdisks, kubevirt
- Language: Go
- Homepage:
- Size: 7.07 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KubeVirt Disk Uploader
Extracts disk and uploads it to a container registry.
## About
A tool designed to automate the extraction of disk, rebuild as [Container Disk](https://kubevirt.io/user-guide/virtual_machines/disks_and_volumes/#containerdisk) 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**
- Modify [kubevirt-disk-uploader](https://github.com/codingben/kubevirt-disk-uploader/blob/main/kubevirt-disk-uploader.yaml#L58) arguments.
- Modify [kubevirt-disk-uploader-credentials](https://github.com/codingben/kubevirt-disk-uploader/blob/main/kubevirt-disk-uploader.yaml#L65-L74) of the external container registry.**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](https://kubevirt.io/user-guide/operations/export_api).