Use Lingjun cluster services

更新时间:
复制 MD 格式

LINGJUN clusters support two connection methods: kubectl (for clusters managed by Container Service for Kubernetes) and SSH (for basic LINGJUN services). Choose the method that matches your cluster type.

Important

LINGJUN compute nodes are not reachable from the internet. All cluster operations must be performed from an Elastic Compute Service (ECS) instance in the same Virtual Private Cloud (VPC) as the LINGJUN cluster.

Choose your connection method:

Connect with ACK Lingjun managed edition

Prerequisites

Before you begin, make sure you have:

Identify the VPC connected to your LINGJUN cluster

  1. Log on to the Intelligent Computing LINGJUN console.

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

  3. Click the Cloud Enterprise Network (CEN) name of the corresponding Lingjun connection instance to open the CEN console.

  4. Click the ID or name of the CEN instance.

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

Configure cluster credentials

  1. Log on to the Container Service for Kubernetes (ACK) console.

  2. On the Clusters page, click the name of your cluster.

  3. Select a credential type based on your access needs:

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

    • Temporary access credential: Click Generate Temporary Kubeconfig and set a validity period. For details, see Obtain and use a KubeConfig file.

    image

  4. Paste the copied credential into $HOME/.kube/config. Save and close the file.

    If the $HOME/.kube/ directory or the config file does not exist, create them before pasting.

Verify connectivity

Run the following command from the ECS instance:

kubectl --kubeconfig .kube/config get node

If the connection is successful, the output lists all compute nodes with their names, statuses, and other details:

NAME               STATUS   ROLES    AGE   VERSION
<node-name>        Ready    <none>   ...   ...

Nodes with a Ready status confirm the cluster connection is working.

image

Connect to basic LINGJUN services

Prerequisites

Before you begin, make sure you have:

Identify the VPC connected to your LINGJUN cluster

  1. Log on to the Intelligent Computing LINGJUN console.

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

  3. Click the CEN name of the corresponding Lingjun connection instance to open the CEN console.

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

Find the node's private IP address

  1. In the Intelligent Computing LINGJUN console, choose Resources and Nodes > Node Management in the left navigation pane.

  2. Click the name of the node you want to connect to.

  3. On the Node Details page, find the private IP address in the Network Information section.

Log on using SSH

From your ECS instance, connect to the node using a shell tool with the following credentials:

FieldValue
Usernameroot
PasswordThe cluster's logon password
HostThe node's private IP address

Related topics