Infer Operator is one of the MindCluster cluster scheduling components, deployed on management nodes. It is a Kubernetes Operator used to deploy and manage multi-role collaborative inference jobs. Infer Operator defines three CRDs: InferServiceSet, InferService, and InstanceSet, and implements controllers for these three resource types to reconcile their instance states.
MindCluster provides the Infer Operator component to launch inference services based on instance configurations of inference services, and supports manual scaling of inference instances.
Starting from version v26.1.0, tags follow the format below:
<version>-<os>
| Field | Example | Description |
|---|---|---|
version | v26.1.1 | Version Number of Infer Operator |
os | ubuntu22.04 | Operating System for Infer Operator Images |
The following are all images of the latest released 26.1.1 version of Infer Operator. For all historical version Tags, please refer to Supported Tags.
| Tag | Dockerfile | Image Content |
|---|---|---|
v26.1.1-ubuntu22.04 | Dockerfile.ubuntu | Infer Operator v26.1.1 (Base Image: Ubuntu 22.04) |
v26.1.1-openeuler24.03 | Dockerfile.openeuler | Infer Operator v26.1.1 (Base Image: openEuler 24.03) |
The tags of versions before v26.1.0 follow the format below:
<version>
| Field | Example | Description |
|---|---|---|
version | v26.0.0 | Version Number of Infer Operator |
| Tag | Dockerfile | Image Content |
|---|---|---|
v26.0.0 | Dockerfile | Infer Operator v26.0.0 (Base Image: Ubuntu 22.04) |
| Software | Supported Versions | Installation Location | Description |
|---|---|---|---|
| Kubernetes | 1.17.x~1.34.x (1.19.x or later recommended) | All nodes | See Kubernetes Documentation |
| Volcano | See Volcano Kubernetes compatibility | Management nodes | Infer Operator depends on Volcano for resource scheduling |
| Atlas Device Plugin | Same version as Infer Operator | Compute nodes | Required when inference jobs use NPU resources |
| Resource | Requirement |
|---|---|
| CPU | 2 cores |
| Memory | 2 GB |
Pull the official image
Pull the Infer Operator image from the Atlas image repository, replacing {tag} with the actual version.
docker pull swr.cn-south-1.myhuaweicloud.com/ascendhub/infer-operator:{tag}
Retag the image
Retag the official image with a local tag for consistent naming and easier operations management.
docker tag swr.cn-south-1.myhuaweicloud.com/ascendhub/infer-operator:{tag} infer-operator:{tag}
Example: build an Infer Operator image of architecture linux-aarch64, version v26.1.1, based on Ubuntu 22.04.
Obtain the target Dockerfile
Navigate to the chapter Supported Tags and Dockerfile Links, open the Dockerfile.ubuntu link corresponding to your target version, and save the file to a local directory on your aarch64 environment.
Build the Docker image locally (disable cache to ensure a clean build)
docker build --no-cache -t infer-operator:v26.1.1 ./ -f Dockerfile.ubuntu
Important Notes If your Docker version is earlier than 18.09 or BuildKit is not manually enabled, the TARGETPLATFORM variable cannot be read during image building, which will cause the image build to fail.
- TARGETPLATFORM is a built-in global variable of Docker BuildKit for identifying the target build platform, e.g. linux/amd64, linux/arm64.
- This variable is automatically injected only after BuildKit is enabled. It cannot be used in legacy Docker environments or environments where BuildKit is disabled by default.
- Run the following command before building to enable BuildKit temporarily:
export DOCKER_BUILDKIT=1
Example: Build an Infer Operator image of architecture linux-aarch64, version v26.0.0, based on Ubuntu 22.04.
Download the officially released component package
wget https://gitcode.com/Ascend/mind-cluster/releases/download/v26.0.0/Ascend-mindxdl-infer-operator_26.0.0_linux-aarch64.zip
Extract the package to a custom directory
unzip Ascend-mindxdl-infer-operator_26.0.0_linux-aarch64.zip -d Ascend-mindxdl-infer-operator_26.0.0_linux-aarch64
Enter the extracted working directory
cd Ascend-mindxdl-infer-operator_26.0.0_linux-aarch64
Build the Docker image locally (disable cache to ensure a clean build)
docker build --no-cache -t infer-operator:v26.0.0 ./ -f Dockerfile
Start Infer Operator
Replace the image {tag} in the infer-operator-{version}.yaml file with the actual tag.
kubectl apply -f infer-operator-{version}.yaml
Verify deployment
kubectl get pods -A | grep infer-operator
Expected result: The infer-operator related Pods in the corresponding namespace should be in Running state.
View the license information for the Mind series software contained in these images.
As with all container images, pre-installed software packages (Python, system libraries, etc.) may be subject to their respective license agreements.
Content type
Image
Digest
sha256:ed5d901ed…
Size
48.6 MB
Last updated
11 days ago
docker pull ascendai/infer-operator:v26.1.1-ubuntu22.04