Dedicating OCP nodes for specific workloads
You can use the kubectl taint command to dedicate OCP cluster nodes
for specific workloads. You can dedicate GPU nodes for Cloudera AI Workbench, and NVME nodes for Cloudera Data Warehouse workloads.
Run the following command to get a list of all of the cluster nodes:
kubectl get nodes
Run the following command to list information about a specific cluster node:
kubectl describe node <node_name>
Taints field.Dedicate a GPU node for Cloudera AI Workbench
- Run the following command to dedicate a GPU node for Cloudera AI Workbench:
kubectl taint nodes <node_name> nvidia.com/gpu=true:NoScheduleNo other workload pods will be allowed to run on the tainted node.
- Run the following command to confirm that the taint has been successfully
applied:
kubectl describe node <node_name>In the returned output, look for the
Taintsfield.
- To remove the taint, run the following command:
This command returns:kubectl taint nodes <node_name> nvidia.com/gpu=true:NoSchedule-node/<node_name> untainted
Dedicate a SSD node for Cloudera Data Warehouse workloads
- Run the following command to dedicate a GPU node for Cloudera Data Warehouse workloads:
kubectl taint nodes <node_name> ssd/nvme=true:NoScheduleNo other workload pods will be allowed to run on the tainted node.
- Run the following command to confirm that the taint has been successfully
applied:
kubectl describe node <node_name>In the returned output, look for the
Taintsfield.
- To remove the taint, run the following command:
This command returns:kubectl taint nodes <node_name> ssd/nvme=true:NoSchedule-node/<node_name> untainted
