Label Lustre-capable nodes
The default klustre-csi-static storage class restricts scheduling to nodes labeled lustre.csi.klustrefs.io/lustre-client=true. Use this runbook whenever you add or remove nodes from the Lustre client pool.
Requirements
- Cluster-admin access with
kubectl. - Nodes already have the Lustre client packages installed and can reach your Lustre servers.
Steps
Identify nodes that can mount Lustre
kubectl get nodes -o wideCross-reference with your infrastructure inventory or automation outputs to find the node names that have Lustre connectivity.
Apply the label
kubectl label nodes <node-name> lustre.csi.klustrefs.io/lustre-client=trueRepeat for each eligible node. Use
--overwriteif the label already exists but the value should change.Verify
kubectl get nodes -L lustre.csi.klustrefs.io/lustre-clientEnsure only the nodes with Lustre access show
true. Remove the label from nodes that lose access:kubectl label nodes <node-name> lustre.csi.klustrefs.io/lustre-client-Confirm DaemonSet placement
kubectl get pods -n klustre-system -o wide \ -l app.kubernetes.io/name=klustre-csiPods from the
klustre-csi-nodedaemonset should exist only on labeled nodes. If you see pods on unlabeled nodes, check thenodeSelectorand tolerations in the daemonset spec.
Related topics
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.