Updated on 2024-11-11 GMT+08:00

Configuring kubectl

With kubectl configured, you can use the command line tool to manage your Kubernetes clusters by running kubectl commands. Follow these steps to configure kubectl.

  1. Choose Resource Management > AI Dedicated Resource Pools and click the ModelArts Lite tab.

    Figure 1 Resource Pools

  2. Click the target dedicated resource pool to access its details page.

    Figure 2 Dedicated resource pool details

  3. Click the CCE cluster to access its details page. From there, locate Connection Information in the cluster information.

    Figure 3 Connection Information

  4. Use kubectl.

    • To use kubectl through the intranet, install it on a node within the same VPC as the cluster. Click Configure next to kubectl. Perform operations as prompted.
      Figure 4 Using kubectl through the intranet
    • To use kubectl through an EIP, install it on any node that associated with the EIP.
      To bind an EIP, click Bind next to EIP.
      Figure 5 Binding an EIP

      Choose or create an EIP.

      After the EIP is bound, locate Connection Information in the cluster information and click Configure next to kubectl.

      Perform operations as prompted.

      Figure 6 Configuring kubectl

  5. Verify the configuration.

    Run this command on the node where kubectl is installed. If the cluster node is displayed, the configuration is successful.

    kubectl get node