This repo was cloned from Jason Kincl's excellent "Lustre on OpenShift" GitHub repo
GOAL: Enable Graid Technology's SupremeRAID high performance storage for OpenShift workloads
Tasks:
- Install any NVIDIA dependencies (NVIDIA Operator?)
- Build the kernel modules using the Kubernetes Kernel Module Management operator and OpenShift's Driver Toolkit image
Red Hat CoreOS is based on RHEL but uses an extended update kernel and in order to make it easier to build kernel modules we have the Driver Toolkit available which contains all of the kernel development headers for a particular release of OpenShift.
In the past we developed an operator to help manage specialized resources on OpenShift (Special Resource Operator) but we are migrating to a collaborative effort upstream to manage kernel modules for Kubernetes called the Kernel Module Management operator.
- Upstream: github and docs
- Midstream: github and docs
- Downstream: OpenShift docs
Kernel Module Management operator (pulling from midstream until deployed into catalogs) installation documentation
$ oc apply -k https://github.com/rh-ecosystem-edge/kernel-module-management/config/default
In the root of this git repository we are using kustomize which will deploy our Module custom resources (in kmm.yaml)
We are lazily labeling all nodes with feature.kmm.lustre=true
to enable the KMM operator but we really only
need the worker nodes.
$ git clone ...
$ oc new-project graid
$ oc apply -k .
$ oc get nodes -o name | xargs -I{} oc label {} feature.kmm.graid=true
The KMM operator will kick off a OpenShift Build using the Dockerfile in this repository. Currently this build pulls
the source RPMs from the AWS FSx RPM repositories and rebuilds them for the Red Hat CoreOS kernel. Once the build
completes it will create DaemonSets to insert the kernel modules on the nodes with the feature.kmm.graid=true
label.
TODO: Create PD, VG, VDs...
TODO: lsblk
TODO: Is LVMStorage the right tool? What about RWX volumes?
TODO: Create a VM - observe StorageClass bindingMode: WaitForFirstConsumer