virt-disk-operator

module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2023 License: Apache-2.0

README

virt-disk-operator

A Kubernetes operator for creating virtual disk devices. This is primarily useful for testing distributed storage systems.

Features

  • Based on Linux NBD (Network Block Device).
  • Can be run locally (eg. KinD) including on Docker Desktop for Mac (using containerized udev).
  • Thin provisioning (eg. virtual disks only take up as much space as they need).
  • LVM2 logical volume support.
  • LUKS encryption support.

Getting Started

Prerequisites
Installing
Dependencies
PROMETHEUS_VERSION="v0.68.0"

kapp deploy -y -a prometheus-crds -f "https://github.com/prometheus-operator/prometheus-operator/releases/download/${PROMETHEUS_VERSION}/stripped-down-crds.yaml"
Operator
kapp deploy -y -a virt-disk-operator -f https://github.com/gpu-ninja/virt-disk-operator/releases/latest/download/virt-disk-operator.yaml
Custom Resources
Create a Virtual Disk
kubectl apply -f examples

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the virt-disk v1alpha1 API group +kubebuilder:object:generate=true +groupName=virt-disk.gpu-ninja.com
Package v1alpha1 contains API Schema definitions for the virt-disk v1alpha1 API group +kubebuilder:object:generate=true +groupName=virt-disk.gpu-ninja.com
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL