How to Install kubernetes.io/lustre provisioner?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.21
Cloud being used: (put bare-metal if not on a public cloud) Bare-metal
Installation method: Bright Cluster Manager
Host OS: Rocky Linux 8.6
CNI and version: Calico & 0.3.1
CRI and version: containerd & 1.5.14

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

Below is my Yaml

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: lustre-sc
provisioner: kubernetes.io/lustre
parameters:
  fsName: lustre
  mgs: mgs-0.example.com@tcp
  mountPath: /mnt/lustre
  lnetConfig: "/etc/modprobe.d/lnet.conf"
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values:
          - node1
          - node2

When applying , getting the below error.

Error from server (BadRequest): error when creating "lustre-sc.yaml": StorageClass in version "v1" cannot be handled as a StorageClass: v1.StorageClass.Parameters: ReadString: expects " or n, but found {, error found in #10 byte of ...|ffinity":{"required"|..., bigger context ...|ds@tcp","mountPath":"/mnt/lustre","nodeAffinity":{"required":{"nodeSelectorTerms":[{"matchExpression|...

I am not aware of any generic lustre storage driver. Theres an azure lustre storage provider, but I am unaware of any others.

If it was provided by a vendor, I’d reach out to them

Thanks @mrbobbytables
You are right …
I want to achieve dynamic provisioning of PVs backed by on-premises lustre running on bare-metal

[root@bright88 test-scripts]# kubectl describe pvc

Name:          claim1

Namespace:     default

StorageClass:  lustre-sc

Status:        Pending

Volume:

Labels:        <none>

Annotations:   <none>

Finalizers:    [kubernetes.io/pvc-protection]

Capacity:

Access Modes:

VolumeMode:    Filesystem

Used By:       <none>

Events:

 Type     Reason              Age               From                         Message

 ----     ------              ----              ----                         -------

 Warning  ProvisioningFailed  3s (x3 over 26s)  persistentvolume-controller  no volume plugin matched name: kubernetes.io/lustre

You won’t be able to without a storage class / driver to do it.

Time to make one?! Did it take Amazon 4 years to make it? I saw a post in sig-storage that someone was from amazon making it, and i’m not sure when FSx Lustre release was!