Skip to content
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

Pods mount needs to contain kubeletDirectory for non-standard K8s Library #152

Open
tkalp opened this issue Oct 24, 2024 · 0 comments
Open

Comments

@tkalp
Copy link

tkalp commented Oct 24, 2024

Hi,

I encountered a mounting issue while running MicroK8s as my Kubernetes cluster node with CVMFS drivers. The nodeplugin pod was incorrectly attempting to mount volumes using /var/lib/kubelet/pods instead of the correct kubelet directory specified by MicroK8s. As a result, the volumes were not mounting properly to the pod.

The root cause was traced to line 79 in the nodeplugin-daemonset.yaml file (deployments/helm/cvmfs-csi/templates). The current configuration uses an incorrect path, leading to mounting failures. Modifying this line to reference the proper kubelet directory fixed the issue, allowing the volumes to mount correctly.

To prevent others from encountering the same problem, I recommend updating the configuration to:

- name: pods-mount-dir
    mountPath: {{ .Values.kubeletDirectory }}/pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant