Skip to content

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

Open
@tkalp

Description

@tkalp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions