หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ CodeArts Pipeline/ User Guide/ CodeArts Release User Guide/ Configuring an Environment Release Policy

Configuring an Environment Release Policy

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

Creating a Policy

You can add atomic extensions and edit release policies based on the preset RollingUpgrade, GrayscaleUpgrade, or EmptyYamlTemplate templates.

  1. Access the environment list page.
  2. Click an environment name.
  3. On the displayed page, click the Release Policy tab.
  4. Click next to Custom Policies, on the displayed dialog box, select a policy template and click OK.
  5. Orchestrate extensions based on the selected template.

    Table 1 Policy parameters

    Parameter

    Description

    Policy

    Policy name. Enter only letters, digits, underscores (_), and hyphens (-) with a maximum of 128 characters.

    Description

    Enter a description with no more than 200 characters.

    Orchestrating an extension

    Set orchestration parameters by referring to Configuring Atomic Extensions.

    • Click to add an extension.
    • Click to clone an extension.
    • Click to delete an extension.

  6. Click Save after the configuration.
  7. Find the created policy on the left and click to apply it. The applied policy will be marked as Default.

Configuring Atomic Extensions

CodeArts Release provides the following five extensions (Rolling upgrade, Start workload, Divert traffic, Remove old version, and Manual check) for rolling upgrade and grayscale upgrade:

  • Rolling upgrade
    Rolling upgrade supports image upgrade and YAML deployment.
    • Image upgrade: Replace the container image in the workload.

      Table 2 Parameter description

      Parameter

      Description

      Namespace

      Namespace to which the service to be upgraded belongs.

      Workload

      Workload in the namespace.

      Container

      Container to be upgraded in the workload.

    • YAML deployment: Use the YAML file to deploy or upgrade the workload.

      Table 3 Parameter description

      Parameter

      Description

      Repo Type

      Repository type. Only Repo is supported.

      Repository

      Code repository of the current project.

      Branch

      Branch of a code repository.

      YAML Path of Workload

      YAML path of the workload to be upgraded. Enter a relative path of the YAML file.

      • The current directory is the root directory of the code branch.
      • Only one YAML file is supported.
      • You can use ${variable name} in a YAML path to reference an environment variable, and {{variable name}} in a YAML file to reference an environment variable.
  • Start workload
    Start workload supports image upgrade and YAML deployment.
    • Image upgrade: Upgrade a workload by replacing the container image with a new one, ensuring it has the same configurations as the currently running packages without changing anything else.

      Table 4 Parameter description

      Parameter

      Description

      Namespace

      Namespace to which the service to be upgraded belongs.

      Service

      The service to be upgraded, which is associated with only one workload.

      Grayscale Version

      Disabled: The system automatically generates a grayscale version number. Enabled: You can configure a grayscale version number as needed.

      Grayscale Version Number

      The grayscale version number is used to distinguish the official version from the grayscale version. You can use ${ENV} to reference environment variables. For example, ${TIMESTAMP} indicates that the system timestamp variable is referenced as the gray version number.

      Enter only letters, digits, and underscores (_) with a maximum of 62 characters.

    • YAML deployment: Use the YAML file to deploy or upgrade the workload.

      Table 5 Parameter description

      Parameter

      Description

      Namespace

      Namespace to which the service to be upgraded belongs.

      Service

      The service to be upgraded, which is associated with only one workload.

      Repo Type

      Repository type. Only Repo is supported.

      Repository

      Code repository of the current project.

      Branch

      Branch of a code repository.

      YAML Path of Workload

      Relative path of the YAML file.

      • The current directory is the root directory of the code branch.
      • Only one YAML file is supported.
      • You can use ${variable name} in a YAML path to reference an environment variable, and {{variable name}} in a YAML file to reference an environment variable.
  • Divert traffic

    Traffic diversion includes:

    • Service blue-green release: All traffic will be switched to the new workload (gray load).
    • ASM grayscale release: Use ASM (Application Services Mesh) VirtualService and DestinationRule configurations to control access traffic, perform grayscale diversion based on traffic proportion and request headers. ASM must be installed in the cluster.
  • Remove old version

    This extension automatically removes the old workload associated with the service. No configurations are required.

  • Manual check

    With this extension, you can approve or reject the deployment policy when the pipeline pauses at a checkpoint, allowing the pipeline to either continue running or to stop.

    Table 6 Parameter description

    Parameter

    Description

    Timeout Processing

    • Check failed and release flow terminated: Pipeline will pause at the checkpoint. If the policy is not approved within the specified period, the pipeline will stop.
    • Check result ignored and release flow continues: Pipeline will pause at the checkpoint. If the policy is not approved within the specified period, the pipeline will continue to run.

    Check Duration

    Time window for checking, which ranges from one minute to 12 hours.

    Description

    Description of the manual check. Enter no more than 200 characters.

เราใช้คุกกี้เพื่อปรับปรุงไซต์และประสบการณ์การใช้ของคุณ การเรียกดูเว็บไซต์ของเราต่อแสดงว่าคุณยอมรับนโยบายคุกกี้ของเรา เรียนรู้เพิ่มเติม

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback