Installing and Uninstalling the Container Storage Interface (CSI) Storage Plugin

This section describes the steps for installing or uninstalling the Container Storage Interface (CSI) Storage Plugin.

By default, the CSI Driver includes CentOS 8 as the base image. If you want to customize the installation, you can build your own container with a FUSE-based POSIX supported OS. See Building Your Own Container for more information.

Installing the CSI Driver

  1. Download and install the CSI Driver custom resource definition on the Kubernetes cluster by running the following command:
    kubectl create -f csi-maprkdf-v<version>.yaml
    FUSE
    kubectl create -f csi-maprkdf-v1.2.0.yaml
    Loopback NFS
    kubectl create -f csi-maprnfskdf-v1.0.0.yaml
    When you run the command to install the CSI Driver, the service accounts, rule-based access controls (RBAC), and the statefulset and daemonset are created on the pods on the Kubernetes cluster.
  2. Verify the installation by running the following command.
    kubectl get pods --all-namespaces -o wide
After installing, you can use the CSI Driver to statically and dynamically provision and mount a data-fabric volume. See Using the Container Storage Interface (CSI) Storage Plugin for more information.

Uninstalling the CSI Driver

To uninstall the CSI driver, run the following command:
kubectl delete -f csi-maprkdf-v<version>.yaml
FUSE
kubectl delete -f csi-maprkdf-v1.2.0.yaml
Loopback NFS
kubectl delete -f csi-maprnfskdf-v1.0.0.yaml
When you run the command to uninstall, all the pods with the mount provisioned by CSI Driver are removed.