longhorn/docs/troubleshooting.md
Sheng Yang 50354e4611 Create ./docs/ for documents
And move part of README.md to it.
2018-08-04 00:13:27 -07:00

843 B

Troubleshooting

Volume can be attached/detached from UI, but Kubernetes Pod/StatefulSet etc cannot use it

Check if volume plugin directory has been set correctly.

By default, Kubernetes use /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ as the directory for volume plugin drivers, as stated in the official document.

But some vendors may choose to change the directory due to various reasons. For example, GKE uses /home/kubernetes/flexvolume, and RKE uses /var/lib/kubelet/volumeplugins.

User can find the correct directory by running ps aux|grep kubelet on the host and check the --volume-plugin-dirparameter. If there is none, the default /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ will be used.