Add local-path-provisioner bind mount

With !154 (merged) and !165 (merged) we added the LVM partitioning to all flavors. This new partitioning schema induces a low free space for /opt where the CSI local-path-provisioner, where it hosts by default all the volumes it manages.

Usually to bypass that we add this in our envs to reconfigure the CSI to a folder containing enough space:

units:
  local-path-provisioner:
    helmrelease_spec:
      values:
        nodePathMap:
          - node: DEFAULT_PATH_FOR_NON_LISTED_NODES
            paths:
              - /var/lib/kubelet

Now with the new partitioning schema the volume hosting /var/lib/kubelet contains enough space to host these volumes.

So this MR fixes the issue by creating a bind mount point for /opt/local-path-provisioner to /var/lib/kubelet/local-path-provisioner to allow having enough space for all volumes using this CSI.

Merge request reports

Loading