Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
certs
kind
.gitignore
Makefile
README.md
controller.yaml
kustomization.yaml
kustomizeconfig.yaml
mutatingwebhooks-op.yaml
mutatingwebhooks.yaml
podpvc.yaml

README.md

Demonstration with kind

This directory contains scripts to run TopoLVM in a demonstration environment. It uses kind to run Kubernetes and loopback block devices to run lvmd.

To start the demonstration environment, run the following commands:

$ make setup
$ make run

An LVM logical volume will be created and bound with a PersistentVolumeClaim as follows:

$ export KUBECONFIG=$(kind get kubeconfig-path)
$ kubectl get pvc
% NAME          STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS          AGE
% topolvm-pvc   Bound    pvc-05df10d2-b7ee-11e9-8da2-0242ac110002   1Gi        RWO            topolvm-provisioner   23m

$ kubectl get pv
% NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
% pvc-05df10d2-b7ee-11e9-8da2-0242ac110002 1Gi RWO Delete Bound topolvm-system/topolvm-pvc topolvm-provisioner 25m

$ sudo lvscan
% ACTIVE '/dev/myvg/05e33db5-b7ee-11e9-8da2-0242ac110002' [1.00 GiB] inherit

To stop the demonstration environment, run:

$ make clean
You can’t perform that action at this time.