Kadalu is a lightweight project which provides persistent storage for apps running in Kubernetes.
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 https://kadalu.io/operator-latest.yaml
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
kube-node1.example.com to Kadalu Storage.
# File: storage-pool.yaml --- apiVersion: kadalu-operator.storage/v1alpha1 kind: KadaluStorage metadata: # This will be used as name of PV Hosting Volume name: storage-pool-1 spec: type: Replica1 storage: - node: kube-node1.example.com # 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 \ --device kube-node1.example.com:/dev/vdc
Install Kadalu kubectl plugin using the following command,
kube-master# pip3 install kubectl-kadalu
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.