# if not all gpu nodes support the MIG oc get pods -n nvidia-gpu-operator | grep -E 'nvidia-dcgm-exporter.*' | awk '{print $1} oc rsh -n nvidia-gpu-operator nvidia-dcgm-exporter-dln49 nvidia-smi mig -lgip
# config the mig to node/worker-1(has a GPU A100) which is based on your environment oc label node/worker-1 nvidia.com/mig.config=all-1g.5gb --overwrite=true
# check the log oc logs -n nvidia-gpu-operator $(oc get pods -n nvidia-gpu-operator -l app=nvidia-mig-manager -o jsonpath='{.items[0].metadata.name}')
# check the node oc describe node worker-1 oc describe nodes | grep -A 6 "Capacity" oc get nodes -o=custom-columns='Node:metadata.name,GPU:status.capacity.nvidia\.com/gpu'
# show the mig oc rsh -n nvidia-gpu-operator \ $(oc get pods -n nvidia-gpu-operator | grep -E 'nvidia-driver-daemonset.*' | awk '{print $1}') nvidia-smi mig -lgi
# if not all gpu nodes support the MIG oc get pods -n nvidia-gpu-operator | grep -E 'nvidia-driver-daemonset.*' | awk '{print $1}' oc rsh -n nvidia-gpu-operator nvidia-driver-daemonset-417.94.202412180008-0-rzp8x nvidia-smi mig -lgi