-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(csi-ds): mountpoint-dir same mountpath in pod #628
Conversation
Signed-off-by: Toni Tauro <[email protected]>
Pinging @benashz This is something we didn't test :D Sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinging @benashz This is something we didn't test :D Sorry
Yeah looks like one of the updates was missed. No worries at all.
@@ -44,7 +44,7 @@ spec: | |||
- name: providervol | |||
mountPath: "/provider" | |||
- name: mountpoint-dir | |||
mountPath: /var/lib/kubelet/pods | |||
mountPath: {{ .Values.csi.daemonSet.kubeletRootDir }}/pods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine as long as the csi-provider's kubeletRootDir
is configured the same. I don't see the need to ever change the default value however, since this would entail deploying the worker nodes in a nonstandard way.
Perhaps when/if we add support for Windows to the CSI the we could turn this into a helper function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @benashz
Of course I agree with you, there should never be the need to change the default dir for /var/lib/kubelet
We encountered Nutanix Karbon doing this and putting /var/lib/kubelet
under /var/nutanix/var/lib/kubelet
, this is why we are in need of this change.
* fix(csi-ds): mountpoint-dir same mountpath in pod Signed-off-by: Toni Tauro <[email protected]> * Update Chart.yaml Co-authored-by: Ben Ash <[email protected]>
Fixes the mountpoint-dir overwrite introduced in #603
The mountppath inside the pod should be the same as on the node, or you'll end up with a
no such file or directory
errorSigned-off-by: Toni Tauro [email protected]