Updated on 2024-03-18 GMT+08:00

Preparations

Before creating a grayscale release task, complete the following preparations.

Creating a VPC

Virtual Private Cloud (VPC) provides a logically isolated, configurable, and manageable virtual network environment, improving resource security and simplifying network deployment.

  1. Log in to the VPC console.
  2. Click Create VPC in the upper right corner.
  3. Set the parameters as prompted and click Create Now.

Creating a Key Pair

Create a key pair for identity authentication upon remote node login.

  1. Log in to the Elastic Cloud Server (ECS) console.
  2. In the navigation pane, choose Key Pair. On the Key Pair page, click Create Key Pair in the upper right corner.
  3. Enter a key pair name and click OK.
  4. Manually or automatically download the private key file. The file name is the specified key pair name with a suffix of .pem. Securely store the private key file. In the dialog box displayed, click OK.

    For security purposes, a key pair can be downloaded only once. Keep it secure to ensure successful login.

Creating a Load Balancer

A load balancer will be used as the external access entry of a service mesh, which will route the traffic to backend services.

  1. Log in to the Elastic Load Balance (ELB) console.
  2. Click Create Elastic Load Balancer in the upper right corner.
  3. VPC and Subnet: Select the VPC and subnet created in Creating a VPC, configure other parameters as prompted, and click Apply Now.

Creating a Cluster

  1. Log in to the Cloud Container Engine (CCE) console.
  2. In the navigation pane, choose Resource Management > Clusters. Then, click Create CCE Cluster in the upper right corner.
  3. On the Configure page, configure the following parameters and retain the default values for other parameters.

    • Cluster Name: Enter a cluster name, for example, cluster-test.
    • VPC and Subnet: Select the VPC and subnet created in Creating a VPC.

  4. Click Next: Create Node, configure the following parameters, and retain the default values for other parameters.

    • Specifications: 4 vCPUs and 8 GB memory.
    • Login Mode: Select the key pair created in Creating a Key Pair for identity authentication upon remote node login.

  5. Click Next: Install Add-on and select the add-ons to be installed in the Install Add-on step.

    System resource add-on must be installed. Advanced functional add-on is optional.

  6. Click Next: Confirm. Read the product constraints and select I am aware of the above limitations. Review the configured parameters and specifications.
  7. Submit the order.

    It takes about 6 to 10 minutes to create a cluster. You can click Back to Cluster List to perform other operations on the cluster or click Go to Cluster Events to view the cluster details.

(Optional) Creating a Namespace

  1. Log in to the CCE console.
  2. In the navigation pane, choose Resource Management > Namespaces. Then, click Create Namespace in the upper right corner.
  3. Enter the namespace name and select the created cluster.
  4. Click OK.

Creating a Workload and a Service

  1. Log in to the CCE console.
  2. Choose Workloads from the navigation pane, click the Deployments tab, click Create Deployment in the upper right corner.
  3. Create a workload and a Service by referring to CCE User Guide.

Creating a Service Mesh

  1. Log in to the ASM console and click Create Mesh.
  2. Set Mesh Name to asmtest, select the cluster named cluster-test created in Creating a Cluster, and select a node on which the Istio control plane is installed. Select two or more nodes in different AZs.
  3. Click Show Advanced Settings. In the Sidecar Configuration area, select the namespace named default and enable Restart Existing Services.
  1. Review the mesh configuration in the Configuration List on the right of the page and click Submit.

    It takes about 1 to 3 minutes to create a service mesh. If the service mesh status changes from Installing to Running, the service mesh is successfully created.

Diagnosing Configurations

ASM diagnoses all services in a managed cluster. Grayscale release can be performed only for services that are diagnosed as normal.

  1. Log in to the ASM console, click the service mesh name asmtest to access its details page.
  2. In the navigation pane on the left, choose Service Management, select Namespace: default from the drop-down list box, and view the Configuration Diagnosis Result of servicetest.
  3. If the Configuration Diagnosis Result is Abnormal, click Fix to fix the issues.