Skip to content

Multiple storage sources managed by one CSI driver? #579

Open
@RuairiSinkler

Description

@RuairiSinkler

If this is the wrong place to ask this then I apologise, please point me to where I would best seek this advise.

For context, we have written our own CSI driver for manage NetApp volumes - unfortunately NetApp's solution Trident did not fulfil our needs.

Up until now this driver has simply been required to manage volumes in a single NetApp instance for a given kubernetes cluster. We now want the cluster to be able to provision and use volumes from different instances of NetApp (i.e. different IP address, different API etc.).

My question is which of the following would be considered the most "correct":

  1. Having an instance of the driver for each NetApp backend we want to use - a 1-to-1 of driver to NetApp
  2. Having a single instance of the CSI driver, which can interact with multiple NetApp's to provision volumes in multiple places - a 1-to-many relationship of driver to NetApp

I have tried searching the spec but couldn't find a definitive answer, and have seen examples of both e.g. https://github.com/kubernetes-sigs/aws-efs-csi-driver AWS's EFS driver being limited to serving from a given file system vs Trident's implementation of "backends" allowing it to serve multiple NetApps: https://docs.netapp.com/us-en/trident/trident-use/backend-kubectl.html#tridentbackendconfig

Trident's approach seems good as it means we only have to provision one driver running in our cluster, and seems more advanced, but is this an anti-pattern?

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