Install Alauda AI
Alauda AI now offers flexible deployment options. Starting with Alauda AI 1.4, the Knative capability is an optional feature, allowing for a more streamlined installation if it's not needed.
To begin, you will need to deploy the Alauda AI Operator. This is the core engine for all Alauda AI products. By default, it uses the KServe Standard mode for the inference backend, which is particularly recommended for resource-intensive generative workloads. This mode provides a straightforward way to deploy models and offers robust, customizable deployment capabilities by leveraging foundational Kubernetes functionalities.
If your use case requires Knative functionality, which enables advanced features like scaling to zero on demand for cost optimization, you can optionally install the Knative Operator. This operator is not part of the default installation and can be added at any time to enable Knative functionality.
Recommended deployment option: For generative inference workloads, the Standard approach (previously known as RawKubernetes Deployment) is recommended as it provides the most control over resource allocation and scaling.
TOC
DownloadingUploadingInstalling Alauda AI OperatorInstalling Alauda Build of KServe OperatorEnabling Knative Functionality1. Installing the Knative Operator2. Creating Knative Serving InstanceConfiguring Alauda AI InstanceImporting Built-in Model Images for CatalogFAQ1. Configure the audit output directory for aml-skipperDownloading
Operator Components:
-
Alauda AI Operator
Alauda AI Operator is the main engine that powers Alauda AI products. It focuses on two core functions: model management and inference services, and provides a flexible framework that can be easily expanded.
Download package: aml-operator.xxx.tgz
-
Knative Operator
Knative Operator provides serverless model inference.
Download package: knative-operator.ALL.v1.x.x-yymmdd.tgz
You can download the app named 'Alauda AI' and 'Knative Operator' from the Marketplace on the Customer Portal website.
Uploading
We need to upload both Alauda AI and Knative Operator to the cluster where Alauda AI is to be used.
Downloading the violet tool
First, we need to download the violet tool if not present on the machine.
Log into the Web Console and switch to the Administrator view:
- Click Marketplace / Upload Packages.
- Click Download Packaging and Listing Tool.
- Locate the right OS / CPU architecture under Execution Environment.
- Click Download to download the
violettool. - Run
chmod +x ${PATH_TO_THE_VIOLET_TOOL}to make the tool executable.
Uploading package
Save the following script in uploading-ai-cluster-packages.sh first, then read the comments below to update environment variables for configuration in that script.
${PLATFORM_ADDRESS}is your ACP platform address.${PLATFORM_ADMIN_USER}is the username of the ACP platform admin.${PLATFORM_ADMIN_PASSWORD}is the password of the ACP platform admin.${CLUSTER}is the name of the cluster to install the Alauda AI components into.${AI_CLUSTER_OPERATOR_NAME}is the path to the Alauda AI Cluster Operator package tarball.${KNATIVE_OPERATOR_PKG_NAME}is the path to the Knative Operator package tarball.${REGISTRY_ADDRESS}is the address of the external registry.${REGISTRY_USERNAME}is the username of the external registry.${REGISTRY_PASSWORD}is the password of the external registry.
After configuration, execute the script file using bash ./uploading-ai-cluster-packages.sh to upload both Alauda AI and Knative Operator.
Installing Alauda AI Operator
Procedure
In Administrator view:
-
Click Marketplace / OperatorHub.
-
At the top of the console, from the Cluster dropdown list, select the destination cluster where you want to install Alauda AI.
-
Select Alauda AI, then click Install.
Install Alauda AI window will pop up.
-
Then in the Install Alauda AI window.
-
Leave Channel unchanged.
-
Check whether the Version matches the Alauda AI version you want to install.
-
Leave Installation Location unchanged, it should be
aml-operatorby default. -
Select Manual for Upgrade Strategy.
-
Click Install.
Verification
Confirm that the Alauda AI tile shows one of the following states:
Installing: installation is in progress; wait for this to change toInstalled.Installed: installation is complete.
Installing Alauda Build of KServe Operator
For detailed installation steps, see Install KServe in Alauda Build of KServe.
Enabling Knative Functionality
Knative functionality is an optional capability that requires an additional operator and instance to be deployed.
If you plan to use Knative functionality, you MUST install the Knative Operator and create the Knative Serving instance BEFORE configuring the Alauda AI instance to ensure the required CRDs are available in the cluster.
1. Installing the Knative Operator
Starting from Knative Operator, the Knative networking layer switches to Kourier, so installing Istio is no longer required.
Procedure
In Administrator view:
-
Click Marketplace / OperatorHub.
-
At the top of the console, from the Cluster dropdown list, select the destination cluster where you want to install.
-
Search for and select Knative Operator, then click Install.
Install Knative Operator window will pop up.
-
Then in the Install Knative Operator window.
-
Leave Channel unchanged.
-
Check whether the Version matches the Knative Operator version you want to install.
-
Leave Installation Location unchanged.
-
Select Manual for Upgrade Strategy.
-
Click Install.
Verification
Confirm that the Knative Operator tile shows one of the following states:
Installing: installation is in progress; wait for this to change toInstalled.Installed: installation is complete.
2. Creating Knative Serving Instance
Once Knative Operator is installed, you need to create the KnativeServing instance manually.
Procedure
-
Create the
knative-servingnamespace. -
In the Administrator view, navigate to Operators -> Installed Operators.
-
Select the Knative Operator.
-
Under Provided APIs, locate KnativeServing and click Create Instance.
-
Switch to YAML view.
-
Replace the content with the following YAML:
-
Click Create.
- For ACP 4.0, use version 1.18.1
- For ACP 4.1 and above, use version 1.19.6
-
Specify the version of Knative Serving to be deployed.
-
private-registryis a placeholder for your private registry address. You can find this in the Administrator view, then click Clusters, selectyour cluster, and check the Private Registry value in the Basic Info section.
Configuring Alauda AI Instance
Once Alauda AI Operator (and optionally, Knative Operator) is installed, the operator automatically creates the default AmlCluster instance. You do not need to create the default instance manually. Review and update the automatically created instance according to your environment.
Procedure
In Administrator view:
-
Click Marketplace / OperatorHub.
-
At the top of the console, from the Cluster dropdown list, select the destination cluster where you want to install the Alauda AI Operator.
-
Select Alauda AI, then click it.
-
In the Alauda AI page, click All Instances from the tab.
-
Wait for the
defaultAmlClusterinstance to appear, then edit it. -
Select Deploy Flavor from dropdown:
single-nodefor non HA deployments.ha-clusterfor HA cluster deployments (Recommended for production).
-
Set KServe Mode to Managed.
-
Input a valid domain for Domain field.
INFOThis domain is used by ingress gateway for exposing model serving services. Most likely, you will want to use a wildcard name, like *.example.com.
You can specify the following certificate types by updating the Domain Certificate Type field:
ProvidedSelfSignedACPDefaultIngress
By default, the configuration uses
SelfSignedcertificate type for securing ingress traffic to your cluster, the certificate is stored in theknative-serving-certsecret that is specified in the Domain Certificate Secret field. -
(Optional) Configure a custom OIDC provider.
By default, Alauda AI uses ACP Dex as the OIDC provider. In this default setup, no additional
spec.oidcconfiguration is required in theAmlClusterinstance.If you want Alauda AI to use another OIDC provider, register an OAuth2/OIDC client in that provider, allow the Alauda AI callback URL, and then update
spec.oidcin theAmlClusterYAML. The callback URL is:Alauda AI reads the OIDC client secret from a Kubernetes Secret in the
kubeflownamespace of the Alauda AI installation cluster. The default Secret name isaml-oidc-secret, and the Secret key must beclient-secret. Update this Secret with the client secret from your OIDC provider:Then configure
spec.oidc:If the provider exposes a standard OIDC discovery document at
<issuerURL>/.well-known/openid-configuration, Alauda AI automatically fillsredeemURL,jwksURL, andprofileURLfrom discovery when these fields are not set. If discovery is unavailable, configure these fields explicitly:Use the mapped
loginURLvalue formain.loginURL, or forsecondary.loginURLif you configure a secondary endpoint.Example Keycloak configuration:
- In the target realm, create an OpenID Connect client.
- Set Client ID to the value used in
spec.oidc.clientID, for exampleaml. - Turn on Client authentication.
- Under Authentication flow, select Standard flow.
- Turn on Require PKCE and set PKCE Method to
S256. - Set Valid redirect URIs to
https://<platform-address>/clusters/<cluster-name>/aml/*. - Copy the client secret from the Keycloak client Credentials tab and
update the
aml-oidc-secretSecret shown above. - In the client Client scopes settings, set
basic,email, andprofileto Default, and set other scopes to Optional unless your environment explicitly needs them. Avoid adding large claim mappers such as groups, realm roles, client roles, address, phone, offline access, and other application-specific claims unless required. Large tokens can make the oauth2-proxy cookie exceed browser or ingress header size limits and cause login loops or HTTP 431/400 errors.
-
(Optional) If you want to enable Knative functionality, update the
AmlClusterYAML to reference theKnativeServinginstance:INFOConfigure this only if you installed the Knative Operator and created the
KnativeServinginstance in the previous steps. If you are not using Knative functionality, leave this configuration unset. -
Under Model Catalog section, configure the following parameters:
-
Model OCI Registry Address: Registry address hosting model OCI artifacts for Model Catalog. This field has no default value and must be configured for your environment.
This registry stores the model OCI images used by Model Catalog. Use Harbor or another production-mode OCI registry with HTTPS access enabled. Model Catalog does not support configuring
imagePullSecretfor pulling model OCI images, so the Harbor project or repository used for Model Catalog must allow anonymous pull access from inference cluster nodes. In Harbor, set the project that stores Model Catalog images to Public.If you cannot deploy a registry with HTTPS in the target environment, you can use an HTTP registry as a fallback. Configure the container runtime on every node in the inference cluster before deploying models. For containerd, add an insecure registry mirror for the registry address, for example by creating
/etc/containerd/certs.d/<registry-host:port>/hosts.toml:Then restart containerd or apply the equivalent node-runtime configuration through your cluster management system. This configuration must exist on the nodes where inference service pods are scheduled; otherwise the pod image pull will fail even if Model Catalog can list the model. The exact containerd configuration path can vary by Kubernetes distribution; after applying the configuration, verify that the node can pull a Model Catalog image, for example with
crictl pull <registry-host:port>/<repository>:<tag>. -
Source of PVC: Choose whether to reuse an existing PVC or create a new one. Use
CreateNewto let the installation create the PVC. -
StorageClass Name: StorageClass used when creating a new PVC.
-
-
If you plan to use
llm-dorvLLM-ascend, set KServe Modelcar UID to0. The default value is1000.This setting is cluster-level and affects all Modelcar workloads in the Alauda AI installation cluster.
-
Review the configuration and save the
defaultAmlClusterinstance.
Verification
Check the status field from the AmlCluster resource named default:
It should return Ready:
Importing Built-in Model Images for Catalog
The Catalog feature in Alauda AI ships with a set of built-in model OCI images that users can deploy as inference services from the Web Console. These images must be imported into the OCI registry configured by Model Catalog before the Catalog can serve them. Without this step, the installation completes successfully, but deploying a built-in model from the Catalog will later fail with ImagePullBackOff.
Obtaining the OCI image tarballs
Built-in model images are delivered as OCI archive tarballs (.tar files compliant with the OCI Image Layout Specification). Each tarball contains a multi-architecture image (linux/amd64 + linux/arm64) for one model.
Download the tarballs from the Customer Portal Marketplace, or contact your Alauda support representative to obtain the package matching your Alauda AI version.
Pushing to Harbor
The recommended target is Harbor. The example below uses an HTTP Harbor registry. If your Harbor registry uses HTTPS, omit --plain-http and change the API URLs from http:// to https://.
Run the commands on a node that has ctr, curl, and jq installed and can reach Harbor.
First, set the environment variables:
- Harbor registry endpoint, without the URL scheme.
- Target repository path in Harbor, in the form
<project>/<image-name>. For example,mlops/modelcar-qwen3.5-0.8buses the Harbor projectmlopsand repositorymodelcar-qwen3.5-0.8b. - Image tag carried by the OCI archive. If you do not know it, extract it from the tarball with the command below.
- Path to the OCI archive tarball obtained in the previous step.
- Harbor credentials in the form
user:password. Contact your platform administrator if you do not have these.
The tarball usually carries its own tag (e.g. v0.1.0) inside the OCI image layout. If needed, extract it from the tarball:
Check whether the image tag already exists in Harbor:
If the Harbor project does not exist yet, create it before pushing:
If the project already exists, Harbor returns a non-2xx status code. After confirming the project exists, make sure it is configured as a public project, then continue with the import and push. Model Catalog does not support configuring imagePullSecret when deploying model OCI images, so inference cluster nodes must be able to pull these images anonymously.
Then run the import and push procedure:
Repeat this procedure for each built-in model tarball, varying $REPO, $TAG, and $TAR per model.
--all-platforms is critical at the import step: omitting it imports only the node's host architecture, and the subsequent push will silently miss the other platform's blobs. The flag is not needed on push — pushing the multi-arch index automatically pushes all platforms it references.
Verifying the Harbor import
Confirm that Harbor now serves the image:
HTTP=200 means the image was successfully imported into Harbor. Expected output includes the digest, size, push time, tag, and platform information:
Now, the core capabilities of Alauda AI have been successfully deployed. If you want to quickly experience the product, please refer to the Quick Start.
FAQ
1. Configure the audit output directory for aml-skipper
The default audit output path is /cpaas/audit on the host. However, on some operating systems (e.g., MicroOS), the root path of the host is read-only, and the /cpaas directory cannot be created. In this case, users need to modify the audit output path.
To modify the audit output path, update the AmlCluster default resource and add the amlSkipper.auditLogHostPath.path configuration under spec.values. For example:
The specific path should be consistent with the collection configuration of Alauda Container Platform Log Collector.