How to actually configure csi plugin?

On Nomad 0.11.0, I tried to setup the rancher longhorn csi but I could not find sufficient information what docker image to use and what the parameters for the image are. How would I track down that information?

1 Like

I would love an example of this as well. I need basic distributed persistent storage to move further with Nomad (Longhorn or Gluster would be fine) but am finding it very hard to get some basic examples of how to translate K8s csi instructions into nomad-speak!

1 Like

I’m not familiar with Longhorn but a first pass over https://github.com/longhorn/longhorn shows that it’s pretty deeply tied into K8s.

If you take a look at https://github.com/longhorn/longhorn/tree/master/chart#source-code you can see they have a number of different components. Only one of which is the CSI driver, called “longhorn manager”. You can find that container definition at longhorn.yaml#L311. That’s a good place to start.

Note that Nomad doesn’t yet support the CreateVolume RPCs (see https://github.com/hashicorp/nomad/issues/8212), which we intend to land some this spring when we make CSI GA. So there may be some added tooling you’ll need to use.