Basic Operations of Clusters

Last updated: 2019-09-24 11:02:44

PDF

Creating a Cluster

  1. Log in to the Tencent Cloud TKE console.

  2. Click Cluster in the left navigation bar, and click New in the cluster list page.

  3. Configure the basic cluster information.

    • Cluster name: The name of a cluster to be created, with a length limited to 60 characters.
    • Billing method: Both Prepaid and Postpaid are supported. For more information, please see Billing Method.
    • Region: Select a closest region based on your location. This helps minimize access latency and improve download speed.
    • Availability zone: Clusters in the same region are interconnected with each other through private network, but this is not the case for those distributed in different regions. The same region must be chosen for communication over private networks.
    • Node network: The system assigns the IP addresses within the node network address range to the CVMs in the cluster. For more information, please see Network Configuration of Containers and Nodes.
    • Container network: The system assigns the IP addresses within the container network address range to the containers in the cluster. For more information, please see Network Configuration of Containers and Nodes.
    • Cluster description: Information about cluster creation, which is displayed on the Cluster Information page.
      Alt text
  4. Select a model (all models with cloud disks as system disks are supported).

  5. Enter CVM configuration.

    • System disk: Always 50 GB.
    • Data disk: The increment is 10 GB. The maximum value is 4,000 GB.
    • Public network bandwidth: Two billing methods are available.
    • Bandwidth: If you select Assign public IP for free, the system assigns a public IP at no cost. If there is no need, set bandwidth value to 0.
    • Login method: Three login methods are provided.
      i. Set password: Set a password as instructed.
      ii - Immediately associate key: A key pair is a pair of parameters generated by an algorithm, which makes it more secure to log in to a CVM than using a password.
      iii. Automatically generate password: The automatically generated password is sent to you via the internal message.
    • Security group: It functions as a firewall and is used to set the network access control of CVMs. For more information, please see Configure TKE Security Group.
    • Number of CVMs: Select the number of CVMs.
      Alt text
  6. The created cluster is displayed in the cluster list.

Add a CVM

  1. On the cluster list page, click Add Node on the right.
  2. Set the Network to which the new CVM belongs, its Model and Configuration information.
    You may create CVMs in different subnets under different availability zones in the same region.
  3. The new CVM can be found in the ID/Node Name column.

Terminating a CVM

  1. Click the ID/Name of a cluster on the cluster list page to enter the following page. Select a CVM to be terminated, and click Remove on the right.

  2. When a prompt page that displays details of the node appears, click OK to remove the node.

Viewing Node Information

  1. Click ID/Nameof the cluster in the cluster list.
  2. Click Node List to view the cluster node list information.

Logging in to a Node

Tencent Cloud CVM can be used as a node. For more information on login, please see Log in to CVM.

Creating a Namespace for a Cluster

  1. Select ID/Name of a cluster on the cluster list page.
  2. Click Namespace List, and then click New Namespace.
  3. Enter the information and click Submit.

Deleting a Namespace from a Cluster

  1. Select ID/Name of a cluster on the cluster list page.
  2. Click Namespace List, select a Namespace to be deleted, and click Delete on the right.
  3. When a prompt page that displays details of the namespace appears, click OK to delete it.

Note:
Deleting a namespace will terminate all the resources under this namespace. All the data will be cleared and cannot be recovered after termination. Please back up your data in advance.