If you’re using Kubernetes, you can use Longhorn to provide persistent storage using the Longhorn Container Storage Interface (CSI) driver.
The CSI driver is preferred to the FlexVolume driver, which is deprecated as of Longhorn v0.8.0 and should no longer be used.
Note that the volume created and used through one driver won’t be recognized by Kubernetes using the other driver. So please don’t switch driver (e.g. during upgrade) if you have existing volumes created using the old driver. To switch from the FlexVolume driver to the CSI driver, see here for instructions.
The CSI driver
Requirements for the CSI driver
CSI is in beta release for this version of Kubernetes, and enabled by default.
Mount propagation feature gate enabled.
It’s enabled by default in Kubernetes v1.10. But some early versions of RKE may not enable it.
waiting for pods to become ready (0/3)
all pods ready (3/3)
MountPropagation is enabled!
daemonset.apps "longhorn-environment-check" deleted
clean up complete