Updated on 2024-09-04 GMT+08:00

Kubernetes Nginx-Ingress Grayscale Deployment (CCE Cluster)

Grayscale deployment of CCE Kubernetes clusters based on the ingress-nginx component

Prerequisites

A CCE cluster is available.

Procedure

Table 1 Parameters

Parameter

Description

Action Name

Name of an added deployment action. Max 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./().

Tenant

  • Current: The software package is deployed in the CCE cluster of the current tenant for release.

    Select Current. The current tenant must have the CCE cluster operation permission. If the current tenant does not have the CCE cluster operation permission, select Authorized User for deployment.

  • Other: The software package is deployed and published in the CCE cluster of another tenant in IAM authorization mode.

    If you select Other, you must select an authorized tenant to deploy the CCE cluster.

NOTE:

You are advised to configure the AK/SK of a member account that has the CCE cluster operation permission and not advised to configure the AK/SK of a tenant account.

Authorized User

If you do not have the permission to execute an API, this parameter enables you to obtain the temporary AK/SK of the parent user to execute the CCE API through IAM.

Region

Select the region for deployment.

Cluster Name

Select the Kubernetes cluster applied on CCE.

Namespace

Select the namespace of the Kubernetes cluster on CCE.

Workload

Select the target Deployment.

Service

Name of the service bound to the target workload.

Ingress

Select the name of the route bound to the target service.

Container

Select the name of the CCE container to be deployed.

Image

Select the image to be deployed.

Image Tag

Select the tag of the image to be deployed.

Enabling grayscale configuration

Grayscale release policy:
  • Header

    Header-Key: You can enter the key of a custom header.

    Header-Value: You can enter a custom header value. The value can be a character string or a regular expression. The regular expression format is ^....$.

    Grayscale traffic weight (%): Traffic can be customized.

  • Cookie

    Cookie: Custom cookie content can be entered.

    Grayscale traffic weight (%): Traffic can be customized.

    NOTE:

    The values of Header and Cookie can contain a maximum of 500 characters.