Rate This Document
Findability
Accuracy
Completeness
Readability

Plugin Compilation

Before compiling the plugin, ensure that KAE devices are available and the KAE drivers have been installed in the cluster.

Preparations

  1. Obtain the software and code described in OS and Software Requirements.
  2. Run the following commands to check whether KAE devices exist on the compute nodes:
    lspci | grep HPRE
    lspci | grep SEC
    lspci | grep ZIP
    • If KAE devices exist, an example command output is as follows:

    • If no command output is displayed, the license may not be installed on the compute nodes. In this case, install the license as instructed in Obtaining a License.
  3. Run the following command to check whether the KAE drivers have been installed on the compute nodes:
    ls /sys/class/uacce

    An example command output is as follows. If no command output is displayed, the KAE drivers may not be installed. In this case, install the KAE drivers as instructed in Installation Using Source Code.

Procedure

  1. Obtain the plugin source code.
    git clone https://gitcode.com/boostkit/cloud-native.git
  2. Compile the plugin code to obtain an image.
    cd /path/to/cloud-native
    make kae-device-plugin-docker

    Before compiling the plugin, ensure that Go 1.25 or later has been installed.

  3. Check whether the image is compiled successfully.
    docker images | grep kae-device-plugin

    If the following information is displayed, the image is compiled successfully.

  4. Export the compiled image as kae-device-plugin.tar.
    docker save kae-device-plugin:1.0 -o kae-device-plugin.tar
  5. Copy the exported TAR package to the compute nodes and run the following command to import the image:
    • If the container runtime used by Kubernetes is containerd, run the following command to import the image:
      1
      ctr -n k8s.io images import /path/to/kae-device-plugin.tar
      
    • If the container runtime used by Kubernetes is Docker, run the following command to import the image:
      1
      docker load -i /path/to/kae-device-plugin.tar