All Products
Search
Document Center

Platform For AI:Use Lingjun cluster services

Last Updated:Jan 10, 2025

This topic describes how to use Lingjun cluster services.

Use a Lingjun cluster with ACK activated

You can use a Lingjun cluster with Container Service for Kubernetes (ACK) activated in the ACK console or by using the Kubernetes command-line tool kubectl. We recommend that you use kubectl. For more information, see Obtain the kubeconfig file of a cluster and use kubectl to connect to the cluster.

  1. Download and install kubectl.

  2. View the virtual private cloud (VPC) to which the Lingjun cluster is connected.

    1. Log on to the Intelligent Computing Lingjun console.

    2. In the left-side navigation pane, choose Network Resources > Lingjun Connections.

    3. Find the Lingjun connection that you want to manage and click the name of the Cloud Enterprise Network (CEN) instance in the Connection Instance column to go to the CEN console.

    4. Click the ID of the CEN instance.

    5. Click the Resource Topology tab to view the VPC. For more information, see View resource topology.

  3. Create an Elastic Compute Service (ECS) instance in the same region and zone as the VPC.

    For more information, see Create and manage an ECS instance by using the ECS console (express version).

  4. Create an Internet NAT gateway to enable the ECS instance in the VPC to access the Internet.

    For more information, see Create and manage Internet NAT gateways.

  5. Obtain the cluster credential.

    1. Log on to the ACK console.

    2. On the Clusters page, click the name of the cluster that you want to manage.

    3. Copy the private access credential or a temporary access credential based on your business requirements.image

      • Private access credential: Click Copy to copy the private access credential.

        Important

        You cannot log on to Lingjun compute nodes over the Internet by using SSH. You must connect to and manage a Lingjun cluster on an ECS instance that resides in the same VPC as the Lingjun cluster.

      • Temporary access credential: To connect to the cluster in a more flexible way, click Generate Temporary kubeconfig and specify the validity period of the credential. For more information, see the Generate a temporary kubeconfig file section of the "Obtain the kubeconfig file of a cluster and use kubectl to connect to the cluster" topic.

  6. Add the cluster credential. Add the content of the cluster credential to the config file in the $HOME/.kube directory, save the file, and then exit.

    Important

    If the .kube folder and the config file do not exist in the $HOME/ directory, you must manually create the folder and file.

  7. Verify the connectivity. On the command line, enter kubectl --kubeconfig .kube/config get node to view the basic information about the compute nodes such as their names and states.image

Use a basic Lingjun cluster

For basic Lingjun clusters, we recommend that you use Shell to connect to an ECS instance by using SSH.

Important

You must connect to and manage a Lingjun cluster on an ECS instance that resides in the same VPC as the Lingjun cluster.

  1. View the VPC to which the Lingjun cluster is connected.

    1. Log on to the Intelligent Computing Lingjun console.

    2. In the left-side navigation pane, choose Network Resources > Lingjun Connections.

    3. Find the Lingjun connection that you want to manage and click the name of the CEN instance in the Connection Instance column to go to the CEN console.

    4. Click the Resource Topology tab to view the VPC. For more information, see View resource topology.

  2. Create an ECS instance in the same region and zone as the VPC.

    For more information, see Create and manage an ECS instance by using the ECS console (express version).

  3. Log on to the cluster by using SSH.

    1. Use root as the logon username.

    2. Use the logon password of the cluster. For more information, see the Configure clusters and node groups section of the "Create a basic Lingjun cluster" topic.

    3. View the logon address.

      1. In the left-side navigation pane, choose Resources and Nodes > Node Management.

      2. Click the name of the node that you want to manage. On the Node Details page, view the private IP address in the Network Information section.