Jiva CSI driver implements the csi-spec for
the provision and deprovision of the OpenEBS Jiva volumes on kubernetes.
Jiva CSI driver comprises of 2 components:
A controller component launched as a StatefulSet,
implementing the CSI controller services. The Control Plane
services are responsible for creating/deleting the required
OpenEBS Volume.
A node component that runs as a DaemonSet,
implementing the CSI node services. The node component is
responsible for performing the iSCSI connection management and
connecting to the OpenEBS Volume.
Quick Start
Prerequisites
Kubernetes version 1.14 or higher
OpenEBS Version 1.5 or higher installed.
The steps to install OpenEBS are here
jiva-operator must be installed.
The steps to install jiva-operator is here
iSCSI initiator utils installed on all the worker nodes
You have access to install RBAC components into kube-system namespace.
The Jiva CSI driver components are installed in kube-system
namespace to allow them to be flagged as system critical components.
Installation
Run following commands to proceed with the installation:
Verify that the Jiva CSI Components are installed.
$ kubectl get pods -n kube-system -l role=openebs-csi
NAME READY STATUS RESTARTS AGE
openebs-jiva-csi-controller-0 4/4 Running 0 6m14s
openebs-jiva-csi-node-56t5g 2/2 Running 0 6m13s
Provision a Jiva volume
Create Jiva volume policy to set various policies for creating
jiva volume. Though this is optional as there are already some
default values are set for some field like replicaSC, replicationFactor
etc with default value openebs-hostpath and 3 respectively.
A sample jiva volume policy CR looks like: