Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

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

Deploying with Helm3

Updated on 2025-02-08 GMT+08:00

Helm is a Kubernetes package management tool, which is similar to the package manager in Linux, such as yum and APT. Helm can easily deploy packaged YAML files on Kubernetes. Helm 3 is the commonly used and stable version of Helm.

CodeArts Deploy allows you to use Helm to deploy and upgrade Kubernetes clusters.
Table 1 Parameters

Parameter

Description

Action Name

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

Cluster Type

The default value is Custom.

Kubernetes Service Endpoint

You can select a CCE cluster or your own Kubernetes cluster.

  • Huawei Cloud CCE clusters
    1. Create a CCE cluster.
    2. Create a namespace.
    3. Select the CCE cluster to be deployed.
  • Your own Kubernetes cluster

    Configure the kubeconfig file and select the cluster to be deployed.

Helm Command

install, upgrade, and uninstall are available.

If you select upgrade for Helm Command and the chart name does not exist, the system automatically run install.

Namespace

Enter a namespace.

Chart Name

The custom chart name. You can perform the upgrade operation on the same chart name.

Chart Package Source

Select the source of the chart package to be installed. Artifact and Repo are available.

If you select Repo, you need to specify the code repository and branch.

Chart Package

Enter a directory or GZIP package with a chart file structure.

Values File

Select the values file from Artifact. For example, if you specify Myvalues.yaml, -f Myvalues.yaml will be added to Helm command parameters.

Values

Set values in the CLI. If you specify key1=val1,key2=val2 (separate values with commas), -set key1=val1,key2=val2 will be added to Helm command parameters.

Helm Command Parameters

Add other content to Helm command parameters.

For details, see Helm Install, Helm Upgrade, and Helm Uninstall.

Action Control

Continue the task even if this action fails.

Environment Preparation for Helm3 Deployment Example

This section uses the chart directory as an example to describe how to prepare the environment for the following three examples. Use the following template to deploy a CCE cluster and create the following directories in the code repository of CodeArts Repo.

Segment in configmap.yaml

metadata:
  name: {{ .Values.configmapname }}

Segment in deployment.yaml

spec:
  template:
    spec:
      containers:
        - image: '{{ .Values.imagename }}:{{ .Values.imagetag }}'

Segment in values.yaml

configmapname: valuesfromfile
imagename: httpd
imagetag: latest
NOTE:

{{.Values.xxxx}} corresponds to the variable defined in the values.yaml file in the chart.

The following three examples are based on this section.

For details, see Values Files.

  1. Example 1: Using the Chart Package or Chart File Structure Directory for Deployment

    If the default values file exists in the chart, you do not need to specify the values file in Artifact. You can directly deploy the default values file.

    The deployment result is as follows:

    The corresponding ConfigMap generated on the CCE console is as follows.

    The corresponding Deployment generated on the CCE console is as follows.

  2. Example 2: Deploying Helm3 by Specifying the Values File in CodeArts Artifact

    This example demonstrates how to deploy Helm3 by specifying the Values file in Artifact.

    NOTE:

    The values defined in the external values file will overwrite the values defined in the Values file in the chart.

    Segment of an external Values file. In this example, the file is named values123.yaml.

    configmapname: valuesfile-releasenman
    imagename: nginx
    imagetag: stable

    As shown in the following figure, for Values File, select the Values file in Artifact.

    The deployment result is as follows:

    The corresponding ConfigMap generated on the CCE console is as follows.

    The corresponding Deployment generated on the CCE console is as follows.

  3. Example 3: Deploying Helm3 by Configuring Values

    If Values is set, it has the highest priority and overwrites the values set in the values file of Chart and the values set in the external values file.

    The following figure describes how to configure the image version:

    Segment of the Values File in Chart Package:

    imagetag: latest

    Segment of Values File in Artifact:

    imagetag: stable

    When setting Values, enter the following information:

    imagetag=perl

    The deployment result is as follows:

    The corresponding Deployment generated on the CCE console is as follows.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback