• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. User Guide
  4. Operation Guide
  5. Cluster Manager
  6. Creating a Container Cluster

Creating a Container Cluster

Create a container cluster on which your containerized application will run.

Prerequisites

  • A valid AK/SK file has been uploaded to CCE.

    For details about how to upload AK/SK files, see Uploading an AK/SK File.

  • A VPC with available subnets has been created.

    For details about how to create VPCs, see Creating a VPC.

  • An SSH key has been created.

    For details about how to create SSH keys, see Creating a Key Pair.

Procedure

  1. In the navigation pane of the CCE console, choose Cluster Manager. On the Cluster Manager page, click Create Container Cluster.
  2. On the Create Container Cluster page, specify parameters of the container cluster.

    Figure 1 Specifying container cluster parameters
    • Name
      Name of the container cluster to be created.
      NOTE:

      A container cluster name must begin with a lowercase letter and contain only lowercase letters, digits, and hyphens (-).

    • VPC

      VPC where the container cluster will be located.

    • Subnet

      Subnet where nodes in the container cluster will run.

    • Security Group

      Security group of the container cluster.

      Values:

      • Automatic: A security group is automatically selected for the container cluster and named in the format of cce-auto-created-sg-cluster-<cluster_name>.
      • Custom: A custom security group is manually selected for the container cluster. The selected security group must already have the rules listed in Table 1.
        NOTE:
        • For more information about security groups and security group rules, see Help Center > Virtual Private Cloud > User Guide > Security > Security Group on the management console.
        • Custom security groups cannot be named in the format of cce-auto-created-sg-cluster-<cluster_name>.
        Table 1 CCE security group rules

        Protocol

        Transfer Direction

        Port Range

        Source IP Address

        Security group rules for clusters and cluster-related functions

        TCP

        inbound

        4194

        subnet

        TCP

        inbound

        5001-5002

        subnet

        TCP

        inbound

        10250

        subnet

        TCP

        inbound

        10255

        subnet

        UDP

        inbound

        8472

        subnet

        TCP

        inbound

        5443

        subnet

        TCP

        inbound

        4003

        subnet

        TCP

        inbound

        4505-4506

        subnet

        TCP

        inbound

        22

        subnet

        Security group rules for applications and application access

        any

        outbound

        any

        0.0.0.0/0

        TCP

        inbound

        30000-32767

        0.0.0.0/0

        The Subnet in security group rules must be the subnet in which the container cluster will be located.

    • Cluster Type

      Type of the newly created cluster.

      Values:

      • Single Master: The cluster has only one master.
      • HA Master: The cluster has three masters. The cluster is considered to be available only if at least two of the masters are available. If two or three masters fail, the whole cluster becomes unavailable.
      NOTE:

      Each master occupies 4 CPU cores and 16-GB memory.

  3. Click OK.

    A tab with the name of the newly created container cluster appears on the Cluster Manager page. You can click Add Node to add nodes to the container cluster. For more information, see Adding a Node.