Installing, Uninstalling, and Upgrading the Container Storage Interface (CSI) Storage Plugin
This section describes the steps for installing, uninstalling, and upgrading the Container Storage Interface (CSI) Storage Plugin.
About this task
Installing the CSI Driver
Procedure
-
Download and install the CSI Driver custom
resource definition on the Kubernetes cluster by running the following command:
wherekubectl create -f csi-maprkdf-v<version>.yaml
<version>
is the driver version being installed.FUSE
Loopback NFSkubectl create -f csi-maprkdf-v<version>.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-v<version>.yaml
-
Verify the installation by running the following command.
kubectl get pods --all-namespaces -o wide
What to do next
Uninstalling the CSI Driver
Procedure
To uninstall the CSI driver, run the following command:
kubectl delete -f csi-maprkdf-v<version>.yaml
where
<version>
is the driver
version being
installed.FUSE
kubectl delete -f csi-maprkdf-v<version>.yaml
Loopback
NFSkubectl delete -f csi-maprnfskdf-v<version>.yaml
When
you run the command to uninstall, all the pods with the mount provisioned by CSI
Driver are removed.Upgrading the CSI Driver
About this task
Procedure
- Shut down all application pods that have a persistent volume mounted in the HPE Ezmeral Data Fabric.
-
Reapply the new CSI driver
.yaml
, and wait for Kubernetes to restart all the CSI pods:kubectl apply -f csi-maprkdf-<version>.yaml
- Restart application pods.