Follow the below steps for an offline upgrade
- Uninstall DirectPV CSI driver.
$ kubectl directpv uninstall
- Upgrade DirectPV plugin by this documentation.
- Install the latest DirectPV CSI driver by this documentation.
Follow the below steps for an in-place upgrade
- Upgrade DirectPV plugin by this documentation.
- Run install script with appropriate node-selector, tolerations, and
KUBELET_DIR_PATH
environment variable. Below is an example:
$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh -s - apply
Follow the below steps to upgrade to the latest DirectPV CSI driver from a legacy DirectCSI installation.
- Uninstall DirectCSI driver if you run v3.1.0 or newer version. For other versions, skip this step.
$ kubectl directcsi uninstall
- Install the latest DirectPV plugin by this documentation or upgrade existing DirectPV plugin by this documentation.
- Install the latest DirectPV CSI driver by this documentation.
- Uninstall DirectCSI driver if you run older than v3.1.0 version. For other versions, skip this step.
$ kubectl directcsi uninstall
To upgrade the plugin, run below command
$ kubectl krew upgrade directpv
Refer to the binary installation documentation.