You can deploy the cloud-native AI component set only in professional Kubernetes clusters. This topic describes how to deploy the cloud-native AI component set in professional Kubernetes clusters, and how to install and configure AI Dashboard and AI Deveoper Console.

Prerequisites

  • A professional Kubernetes cluster is created. Make sure that Monitoring Agents and Log Service are enabled on the Component Configurations wizard page when you create the cluster. For more information, see Create a professional managed Kubernetes cluster.
    Note The preceding prerequisites apply only when you install and configure AI Dashboard.
  • The Kubernetes version of the professional Kubernetes cluster is 1.18 or later.

Deploy the cloud-native AI component set

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Applications > Cloud-native AI Component Set (Public Preview).
  5. On the Cloud Native AI Component Set page, click Deploy.
  6. On the Cloud-native AI Component Set page, select the components that you want to deploy and click Deploy Cloud-native AI Component Set. The system checks the environment and dependencies, and then automatically deploys the components after the check is passed.
    Note
    After the components are installed, you can view the following information in the Components list:
    • You can view the names and versions of the components that are installed in the cluster. You can deploy or uninstall components.
    • If a component is upgradable, you can also upgrade the component.
    • After you install ack-ai-dashboard and ack-ai-dev-console, you can find the hyperlinks of AI Dashboard and AI Developer Console in the upper-left corner of the Cloud-native AI Component Set page. You can click a hyperlink to log on to the corresponding console.

Install and configure AI Dashboard

  1. In the Interaction Mode section of the Cloud-native AI Component Set page, select AI Dashboard. Then, the Note dialog box appears, as shown in the following figure.
    K-AI-2
    Note
    • If you select Public Domain and use a public domain name to access AI Dashboard, you must configure access control policies.
    • If you select Internal Domain and use an internal domain name to access AI Dashboard, you must first install internal-facing Ingresses.
    • If you want to use an internal endpoint to access AI Dashboard, select Private IP in the Note dialog box.
    • If you select Pre-installed MySQL to store the data of AI Dashboard, data security is not guaranteed by service-level agreements (SLAs). Exercise caution when you select this option.
  2. In the Note dialog box, click the hyperlink to grant the cluster the required permissions.
    1. On the details page of the Resource Access Management (RAM) role, click the Permissions tab and click the name of the policy that you want to manage.
    2. Click Modify Policy Document on the Policy Document tab. In the Modify Policy Document panel, add the following content to the Action field in the Policy Document section:
      "ecs:DescribeInstances",
      "ecs:DescribeSpotPriceHistory",
      "ecs:DescribePrice",
      "eci:DescribeContainerGroups",
      "eci:DescribeContainerGroupPrice",
      "log:GetLogStoreLogs",
      "ims:CreateApplication",
      "ims:UpdateApplication",
      "ims:GetApplication",
      "ims:ListApplications",
      "ims:DeleteApplication",
      "ims:CreateAppSecret",
      "ims:GetAppSecret",
      "ims:ListAppSecretIds",
      "ims:ListUsers"
    3. Click OK.
  3. Select the method to store the data of AI Dashboard.
    • If you select Pre-installed MySQL, make sure that the nodes in the cluster are attached with enhanced SSDs. The cloud-native AI component set automatically installs a MySQL database in the cluster. This method does not require you to purchase ApsaraDB RDS instances. However, data security is not guaranteed by SLAs. Data loss may occur if cluster exceptions occur or the MySQL database is accidentally deleted.
    • If you select ApsaraDB RDS, you must purchase an ApsaraDB RDS instance and use the following YAML template to create a kubeai-rds Secret in the kube-ai namespace. The kubeai-rds Secret must contain the endpoint and name of the ApsaraDB RDS instance, and the username and password that are used to log on to the ApsaraDB RDS instance.
      Notice If connection errors occur when you use the ApsaraDB RDS instance, refer to What do I do if I cannot connect an ECS instance to an ApsaraDB for RDS instance? to troubleshoot the issues.
      apiVersion: v1
      kind: Secret
      metadata:
        name: kubeai-rds
        namespace: kube-ai
      type: Opaque
      stringData:
        MYSQL_HOST: "Your RDS URL"
        MYSQL_DB_NAME: "Database name"
        MYSQL_USER: "Database username"
        MYSQL_PASSWORD: "Database password"
      Note If you want to change the method for data storage, you must uninstall and redeploy the cloud-native AI component set. You must also delete the kubeai-rds Secret by using kubectl.
  4. On the Cloud-native AI Component Set page, select Monitoring Component.
    K-AI-3
  5. Click Deploy Cloud-native AI Component Set.

Install and configure AI Developer Console

  • If no component in the cloud-native AI component set is installed, you can click Deploy on the Cloud-native AI Component Set page.
    1. In the Interaction Mode section, select AI Developer Console. The Note dialog box appears, as shown in the following figure. Follow the instructions in the Note dialog box to grant the cluster the required permissions and select a method to access AI Developer Console. For more information about how to grant the cluster the required permissions, see Step 2 in the "Install and configure AI Dashboard" section.
      Note Arena (Required) in the Interaction Mode section is required and automatically selected.
      A33
    2. Click Deploy Cloud-native AI Component Set.
  • If you have installed some components in the cloud-native AI component set, find ack-ai-dev-console in the Components list of the Cloud-native AI Component Set page. Then, click Deploy in the Actions column to install AI Developer Console.