Kubernetes to IBM Spectrum Scale node mapping

In some environments, Kubernetes node names might be different from the IBM Spectrum Scale node names. This results in failure during mounting of pods. Kubernetes node to IBM Spectrum Scale node mapping must be configured to address this condition during the Operator configuration.

To configure this, add "nodeMapping" section under "spec" in the csiscaleoperators.csi.ibm.com_cr.yaml, as shown in the following example:

nodeMapping:
   - k8sNode: "kubernetesNode1"
     spectrumscaleNode: "scaleNode1"
   - k8sNode: "kubernetesNode2"
     spectrumscaleNode: "scaleNode2"
If Kubernetes node name starts with a number, then add node mapping for such nodes in the following format:

    - k8sNode: "K8sNodePrefix_<Kubernetes Node Name/ID>"
      spectrumscaleNode: "<Spectrum Scale Node Name/ID>"
For example, if Kubernetes node name is 198.51.100.10, then use the following node mapping:

    - k8sNode: "K8sNodePrefix_198.51.100.10"
      spectrumscaleNode: "spectrumscalenode11"
Note:
  • Kubernetes node name is listed by issuing the kubectl get nodes command.
  • You can list the IBM Spectrum Scale node name by issuing the following command. Look for the field nodesMountedReadWrite.
    curl --insecure -u '<gui_username>:<gui_username_password>' -X GET <https://<gui> host IP/name>:443/scalemgmt/v2/filesystems/<filesystemname>?fields=mount
  • All entries for nodes that differ in name must be added. Consider only nodes where IBM Spectrum Scale CSI is expected to run along with IBM Spectrum Scale.