From 5e612b748646a9adab07a30bd51aaf22a2ce90df Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Mon, 26 Sep 2022 08:58:19 +0000 Subject: [PATCH] docs: explain specific nixos configurations Explain the fix for https://github.com/rook/rook/issues/10932 to let NixOS users set up Rook more easily. Signed-off-by: Jairo Llopis (cherry picked from commit 7fecca3d6f14b49853a643d768d40aa70774cd52) --- .../Prerequisites/prerequisites.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/Getting-Started/Prerequisites/prerequisites.md b/Documentation/Getting-Started/Prerequisites/prerequisites.md index a4de056d2..fd637321e 100644 --- a/Documentation/Getting-Started/Prerequisites/prerequisites.md +++ b/Documentation/Getting-Started/Prerequisites/prerequisites.md @@ -101,3 +101,30 @@ or choose a different Linux distribution. If you will be creating volumes from a Ceph shared file system (CephFS), the recommended minimum kernel version is **4.17**. If you have a kernel version less than 4.17, the requested PVC sizes will not be enforced. Storage quotas will only be enforced on newer kernels. + +## Distro Notes + +Specific configurations for some distributions. + +### NixOS + +When you use NixOS, the kernel modules will be found in the non-standard path `/run/current-system/kernel-modules/lib/modules/`, +and they'll be symlinked inside the also non-standard path `/nix`. + +For Rook Ceph containers to be able to load the required modules, they need read access to those locations. +They have to be bind-mounted as volumes in the CephFS and RBD plugin pods. + +If you install Rook with Helm, uncomment these example settings in `values.yaml`: + +- `csiCephFSPluginVolume` +- `csiCephFSPluginVolumeMount` +- `csiRBDPluginVolume` +- `csiRBDPluginVolumeMount` + +If you deploy without Helm, add those same values to the corresponding environment variables in the operator pod, +or the corresponding keys in its `ConfigMap`: + +- `CSI_CEPHFS_PLUGIN_VOLUME` +- `CSI_CEPHFS_PLUGIN_VOLUME_MOUNT` +- `CSI_RBD_PLUGIN_VOLUME` +- `CSI_RBD_PLUGIN_VOLUME_MOUNT`