SUSE / caasp-salt

A collection of salt states used to provision a kubernetes cluster
Apache License 2.0
64 stars 29 forks source link

bsc#1117942: fixes for volume plugins #724

Closed inercia closed 5 years ago

inercia commented 5 years ago

bsc#1117942

spiarh commented 5 years ago

@MalloZup this is not specific to cloud, it is used to configure flexvolume drivers.

I'm currently testing it

spiarh commented 5 years ago

@r0ckarong we've fixed this issue but we're not using the default path because it points to a RO mountpoint, so this would need a point in documentation just to explain what is the good path ;)

A FlexVolume driver is an external (out of tree) driver usually provided by a specific Vendor.

These volume drivers have to be installed on each node (worker/master) in a Kubernetes cluster.

On SUSE CaaSP the path to install these drivers is /var/lib/kubelet/plugins.

Doc: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md

spiarh commented 5 years ago

@inercia we need to backport this one ;)

r0ckarong commented 5 years ago

@lcavajani Is the documentation you linked applicable to CaaSP like that? If not could someone please provide the CaaSP specific steps.

Also, which version of CaaSP will receive this functionality? Is this going to be backported to v3?

spiarh commented 5 years ago

@r0ckarong this will be backported to v3 yes.

There is no specific configuration to do for CaaSP afterwards.

These drivers are usually deployed with DaemonSets, what the user should do is to change the value of the flexolume dir path in the manifests which is usually in the form of an environment variable (e.g FLEXVOLUME_DIR_PATH for rook [1])

[1] https://rook.io/docs/rook/v0.9/flexvolume.html#configuring-the-flexvolume-path

r0ckarong commented 5 years ago

so this would need a point in documentation just to explain what is the good path ;)

What is this better path?

spiarh commented 5 years ago

@r0ckarong the path is /var/lib/kubelet/plugins