Kubernetes Clusters

A cluster is a combination of cloud resources required for running applications. It contains a number of cloud server nodes and load balancers. You can create clusters for private use or for running applications.

Cluster Management

For details about how to set parameters for creating a hybrid cluster, see Buying a Hybrid Cluster.

For details about how to set parameters for creating a Kunpeng cluster, see Buying a Kunpeng Cluster.

Node Management

  • Creating a node.

For details about the parameters for creating a node, see Buying a Node.

  • Adding labels to nodes.

    Node labels are attached to nodes in the form of key-value pairs. After adding labels, you can manage and select nodes. The procedure for adding labels to a node is as follows:

    Add a label, for example, apptype:web, to the node.
    1. Log in to ServiceStage and choose Infrastructure > K8S Cluster. On the Node tab page in the right pane, click Label Management in the Operation column.
    2. Click Add Label, enter apptype to Key and web to Value, and click OK.

    When creating an application, deploy the application on this node based on affinity scheduling. For more information about affinity scheduling, see Setting Scheduling Policies for Application Component Instances.

Namespace

You can create multiple namespaces in a cluster and classify them into different logical groups to share cluster resources. The logical groups can be managed separately.

To create a namespace, ensure that at least one cluster has been created. For details, see Kubernetes Clusters.

  1. Log in to ServiceStage and choose Infrastructure > K8S Clusters > Namespaces.
  2. Click Create Namespace. Set the parameters listed in the following table. Parameters marked with an asterisk (*) are mandatory.

    Table 1 Parameters for creating a namespace

    Parameter

    Description

    *Namespaces

    Name of the namespace, which must be unique in a cluster.

    *Cluster Name

    Cluster to which the namespace belongs.

    Description

    Description of the namespace.

  3. Click OK.