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.
View the virtual private cloud (VPC) to which the Lingjun cluster is connected.
Log on to the Intelligent Computing Lingjun console.
In the left-side navigation pane, choose Network Resources > Lingjun Connections.
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.
Click the ID of the CEN instance.
Click the Resource Topology tab to view the VPC. For more information, see View resource topology.
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).
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.
Obtain the cluster credential.
Log on to the ACK console.
On the Clusters page, click the name of the cluster that you want to manage.
Copy the private access credential or a temporary access credential based on your business requirements.
Private access credential: Click Copy to copy the private access credential.
ImportantYou 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.
Add the cluster credential. Add the content of the cluster credential to the
configfile in the$HOME/.kubedirectory, save the file, and then exit.ImportantIf the
.kubefolder and theconfigfile do not exist in the$HOME/directory, you must manually create the folder and file.Verify the connectivity. On the command line, enter
kubectl --kubeconfig .kube/config get nodeto view the basic information about the compute nodes such as their names and states.
Use a basic Lingjun cluster
For basic Lingjun clusters, we recommend that you use Shell to connect to an ECS instance 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.
View the VPC to which the Lingjun cluster is connected.
Log on to the Intelligent Computing Lingjun console.
In the left-side navigation pane, choose Network Resources > Lingjun Connections.
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.
Click the Resource Topology tab to view the VPC. For more information, see View resource topology.
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).
Log on to the cluster by using SSH.
Use
rootas the logon username.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.
View the logon address.
In the left-side navigation pane, choose Resources and Nodes > Node Management.
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.