Need to have ability to pass different hostPath for pods-mount-dir
[X] Have you removed all sensitive information, including but not limited to access keys and passwords?
[X] Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?
Feature Requests:
[X] Have you explained your rationale for why this feature is needed?
[X] Have you offered a proposed implementation/solution?
Bug Reporting
We tried to install the linode-blockstorage-csi-driver on IBM Cloud satellite. The installation worked fine with NodeService and ControllerService up and running without any error in the log. The PVC creation also worked fine . However, when we attach the volume to POD and write some data to it , it is getting erased when POD is restarted . The volume mount was not happening on the correct path . After some debug , we found that the pods-mount-dir should /var/data/kubelet instead of default /var/lib/kubelet We changed below lines and redeployed the driver and it started using correct path for volume mount . Thus, data got persisted over the POD restarts .
The consumer of this driver should be able to pass/configure different hostPath for pods-mount-dir based on the environment. The helm char value might be one option
Actual Behavior
There is not way to pass/configure different hostPath for pods-mount-dir based on the environment.
Steps to Reproduce the Problem
Create the cluster on IBM cloud satellite
Install linode-blockstorage-csi-driver using helm chart
Create PVC with linode-block-storage storageclass
Attache the PVC to POD
Write some data to the mounted volume
Restart the POD.
The old data from the mounted volume will be erases
Environment Specifications
IBM Cloud Satellite with Linode host and block storage
Need to have ability to pass different hostPath for pods-mount-dir
Feature Requests:
Bug Reporting
We tried to install the linode-blockstorage-csi-driver on IBM Cloud satellite. The installation worked fine with NodeService and ControllerService up and running without any error in the log. The PVC creation also worked fine . However, when we attach the volume to POD and write some data to it , it is getting erased when POD is restarted . The volume mount was not happening on the correct path . After some debug , we found that the pods-mount-dir should
/var/data/kubelet
instead of default/var/lib/kubelet
We changed below lines and redeployed the driver and it started using correct path for volume mount . Thus, data got persisted over the POD restarts .Expected Behavior
The consumer of this driver should be able to pass/configure different hostPath for pods-mount-dir based on the environment. The helm char value might be one option
Actual Behavior
There is not way to pass/configure different hostPath for pods-mount-dir based on the environment.
Steps to Reproduce the Problem
Environment Specifications
IBM Cloud Satellite with Linode host and block storage
Screenshots, Code Blocks, and Logs
Ref:https://github.com/linode/linode-blockstorage-csi-driver/pull/120#issuecomment-1775273834
Additional Notes
For general help or discussion, join the Kubernetes Slack team channel
#linode
. To sign up, use the Kubernetes Slack inviter.The Linode Community is a great place to get additional support.