Introducing Kadalu kubectl plugin

Posted on Jan 6, 2020 by Aravinda Vishwanathapura
1 minute read.

Kadalu is a lightweight project which provides persistent storage for apps running in Kubernetes.

Kubernetes supports extending kubectl functionalities via plugins. We are happy to announce the Kadalu kubectl plugin with the 0.4 release.

Installing Kadalu is very easy! The first step is to install the Kadalu Operator by running the following command.

kube-master# kubectl kubectl create -f

The second step is to define the storage pool, which is a YAML file with the details about available storage devices and corresponding Kube node. For example, the below YAML file is to add /dev/vdc from to Kadalu Storage.

# File: storage-pool.yaml
kind: KadaluStorage
 # This will be used as name of PV Hosting Volume
  name: storage-pool-1
  type: Replica1
    - node:  # node name as shown in `kubectl get nodes`
      device: /dev/vdc              # Device to provide storage to all PVs

Then run the following command to add that device to Kadalu Storage so that that future PV claims can be served from this pool.

kube-master# kubectl create -f storage-pool.yaml

Kadalu kubectl plugin further simplifies the hassle of generating storage YAML file and adding it to the Kadalu Storage. For example, the following command does the same thing as create YAML file and calling kubectl create command.

kube-master# kubectl kadalu storage-add storage-pool-1 \

Install Kadalu kubectl plugin using the following command,

kube-master# pip3 install kubectl-kadalu

Run kubectl kadalu storage-add --help to see all the available options.

In this initial release, only add storage is supported. Please write to us with the list of features you want to see in this tool.

Join the Kadalu team as we plan, design and develop new features. We are available on our Slack instance,

Aravinda Vishwanathapura

Kadalu Maintainer

Website| Twitter| Github

© 2022 Kadalu Community( All Rights Reserved.