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`