apiVersion: config.openshift.io/v1
kind: DpuOperatorConfig
metadata:
name: dpu-operator-config (1)
spec:
mode: host (2)
You can configure the DPU Operator to manage the DPU devices and network attachments in your cluster.
To configure the DPU Operator follow these steps:
Create a DpuOperatorConfig
custom resource (CR) on both the host cluster and on each of the DPU clusters. The DPU Operator in each cluster is activated after this CR is created.
Create a file named dpu-operator-host-config.yaml
by using the following YAML:
apiVersion: config.openshift.io/v1
kind: DpuOperatorConfig
metadata:
name: dpu-operator-config (1)
spec:
mode: host (2)
1 | The name of the custom resource must be dpu-operator-config . |
2 | Set the value to host on the host cluster. On each DPU cluster, which runs a single MicroShift cluster per DPU, set the value to dpu . |
Create the resource by running the following command:
$ oc apply -f dpu-operator-host-config.yaml
You must label all nodes that either have an attached DPU or are functioning as a DPU. On the host cluster, this means labeling all compute nodes assuming each node has an attached DPU with dpu=true
. On the DPU, where each MicroShift cluster consists of a single node, label that single node in each cluster with dpu=true
. You can apply this label by running the following command:
$ oc label node <node-name> dpu=true
$ oc label node worker-1 dpu=true