Updated on 2024-12-16 GMT+08:00

Creating a Release Environment

Creating a Release Environment

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner of the page, and choose Developer Services > CodeArts from the service list.
  3. Click Access Service to go to the CodeArts homepage.
  4. Click a project name to access the project.
  5. Choose CICD > Release to access the release environment list page.
  6. Click Create Environment. On the displayed page, set basic information. For details, see Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Project

    Project to which the environment belongs. The project cannot be changed.

    Environment Name

    Unique identifier of the release environment. Enter only letters, digits, underscores (_), and hyphens (-) with a maximum of 128 characters.

    Resource Type

    CCE, UCS, and K8s are available. They support different deployment extensions.

    • CCE: a type of Kubernetes cluster encapsulated by Huawei Cloud. Select this type if you want to use Huawei Cloud resources. Learn more.
    • UCS: a type of Kubernetes cluster encapsulated by Huawei Cloud for multi-cloud deployment. Select this type if you want to deploy clusters on multiple clouds. Learn more.
    • K8s: the native Kubernetes cluster. Select this type if you want to use self-built clusters or third-party clusters.

    Publish User

    Options: Current User or Other Users.

    • Current User: Create an environment based on the cluster of the current user.
    • Other Users: Create an environment based on the clusters of other users. Obtain other users' cluster permissions through endpoints. For details, see Creating Service Endpoints.

    Region

    This parameter is required when you select CCE for Resource Type.

    Select the region where the environment is to be deployed.

    Cluster

    This parameter is required when you select CCE for Resource Type.

    Select the purchased Kubernetes clusters in Cloud Container Engine (CCE).

    Association Type

    This parameter is required when you select UCS for Resource Type.

    Associated UCS resources. Only fleet is supported.

    Fleets

    This parameter is required when you select UCS for Resource Type.

    Select a fleet.

    Kubernetes Endpoint

    This parameter is required when you select K8s for Resource Type.

    Select a created Kubernetes endpoint to access cluster resources with credential. For details, see Creating Service Endpoints.

    Environment Level

    Available environment types: development, test, pre-release, and production. For details about environment permissions, see Project-level Permissions.

    Description

    Enter the description of the environment with no more than 200 characters.

  7. After setting all parameters, click OK. The environment information page is displayed.

    Table 2 Environment information

    Parameter

    Description

    Resource Type

    Resource types associated with the environment.

    Publish User

    Current user.

    Service Endpoint

    Service endpoint of CCE resources.

    Cluster Region

    Kubernetes cluster region applied in CCE.

    Cluster ID

    Kubernetes cluster ID applied in CCE.

    Variable Version

    Version number of the environment variable in the current environment.

    Tag

    Environment type.

    Description

    Description of the environment.