Block is a very simple charm that allocates and deploys storage disks to any juju deployed virtual machine.
It does require a Dynamic Storage provider to be present.
juju create-storage-pool ssd cinder volume-type="ssd"
juju create-storage-pool nvme cinder volume-type="nvme"
juju create-storage-pool ebsgp3 ebs volume-type="gp3"
See Juju Storage for more information.
juju deploy block --storage disk=ssd,100G,1 --constraints "mem=1G zones=az2"
juju deploy block
juju add-unit block --to 0
juju add-storage block/0 disk=nvme,100G,1
juju storage
Unit Storage ID Type Pool Size Status Message
block/0 disk/0 block ssd 100GiB attached
block/1 disk/1 block nvme 100GiB attached
git clone [email protected]:alanbach/charm-block.git
cd charm-block
charmcraft pack
- Check out the Source Code
- See Contributing if you are interested to make this charm better.
- Found Bugs? Report here
- See the Juju SDK documentation for more information about developing and improving charms.