在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kubevirt/containerized-data-importer开源软件地址(OpenSource Url):https://github.com/kubevirt/containerized-data-importer开源编程语言(OpenSource Language):Go 85.7%开源软件介绍(OpenSource Introduction):Containerized Data ImporterContainerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes. It's primary goal is to provide a declarative way to build Virtual Machine Disks on PVCs for Kubevirt VMs CDI works with standard core Kubernetes resources and is storage device agnostic, while its primary focus is to build disk images for Kubevirt, it's also useful outside of a Kubevirt context to use for initializing your Kubernetes Volumes with data. IntroductionKubernetes extension to populate PVCs with VM disk images or other dataCDI provides the ability to populate PVCs with VM images or other data upon creation. The data can come from different sources: a URL, a container registry, another PVC (clone), or an upload from a client. DataVolumesCDI includes a CustomResourceDefinition (CRD) that provides an object of type DataVolume. The DataVolume is an abstraction on top of the standard Kubernetes PVC and can be used to automate creation and population of a PVC with data. Although you can use PVCs directly with CDI, DataVolumes are the preferred method since they offer full functionality, a stable API, and better integration with kubevirt. More details about DataVolumes can be found here. Import from URLThis method is selected when you create a DataVolume with an Import from container registryWhen a DataVolume has a Clone another PVCTo clone a PVC, create a DataVolume with a Upload from a clientTo upload data to a PVC from a client machine first create a DataVolume with an Prepare an empty Kubevirt VM diskThe special source Import from oVirtVirtual machine disks can be imported from a running oVirt installation using the Import from VMwareDisks can be imported from VMware with the Content TypesCDI features specialized handling for two types of content: Kubevirt VM disk images and tar archives. The
Deploy itDeploying the CDI controller is straightforward. In this document the default namespace is used, but in a production setup a protected namespace that is inaccessible to regular users should be used instead.
Use itCreate a DataVolume and populate it with data from an http source
There are quite a few examples in the example manifests, check them out as a reference to create DataVolumes from additional sources like registries, S3 and your local system. Hack itCDI includes a self contained development and test environment. We use Docker to build, and we provide a simple way to get a test cluster up and running on your laptop. The development tools include a version of kubectl that you can use to communicate with the cluster. A wrapper script to communicate with the cluster can be invoked using ./cluster-up/kubectl.sh.
Storage notesCDI is designed to be storage agnostic. Since it works with the kubernetes storage APIs it should work well with any configuration that can produce a Bound PVC. The following are storage-specific notes that may be relevant when using CDI.
Connect with usWe'd love to hear from you, reach out on Github via Issues or Pull Requests! Hit us up on Slack Shoot us an email at: [email protected] More details |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论