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.
Installing the CSI Driver
-
Download and install the CSI Driver custom
resource definition on the Kubernetes cluster by running the following command:
FUSEkubectl create -f csi-maprkdf-v<version>.yaml
Loopback NFSkubectl create -f csi-maprkdf-v1.2.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.kubectl create -f csi-maprnfskdf-v1.0.0.yaml
-
Verify the installation by running the following command.
kubectl get pods --all-namespaces -o wide
Uninstalling the CSI Driver
kubectl delete -f csi-maprkdf-v<version>.yaml
FUSEkubectl delete -f csi-maprkdf-v1.2.0.yaml
Loopback
NFSkubectl 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.