Updated on 2024-11-21 GMT+08:00

Deploying an Application in Kubernetes (CCE Cluster) Using Manifest

This section introduces how to deploy an application in a Huawei Cloud CCE cluster with manifest file defining Kubernetes objects.

Prerequisites

A CCE cluster is available.

Procedure

Table 1 Parameters

Parameter

Description

Action Name

This parameter is mandatory. After the action name is added, it will be displayed in the Deployment Actions orchestration area.
NOTE:

The action name can contain 1 to 128 characters, including letters, digits, hyphens (-), underscores (_), commas (,), semicolons (;), colons (:), slashes (/), parentheses, and spaces. However, it cannot start or end with a space.

Manifest File Source

This parameter is mandatory. Artifact, Repo, or obs can be selected. Here, Artifact has been selected.

Manifest File

This parameter is mandatory. Select the manifest files to be deployed. These files must be suffixed with .yaml, .yml, or .json.

Click . On the file selection page that is displayed, select the manifest file to be deployed in Artifact. By default, the project cannot be changed. You can search for the manifest file by keyword or upload the local manifest file to the repository, click , refresh the repository file, and select the manifest file. Click .

Tenant

This parameter is mandatory. There are two options:

  • 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

This parameter is optional. 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.

Java Probes

This helps you quickly locate workload issues and analyze performance bottlenecks. For details, see Configuring APM Settings for Performance Bottleneck Analysis.

Probe Type

  • APM2.0 Probe: Java probes will allocate 0.25-core CPU and 250-MiB memory to initialize containers.
  • Disable: Probe fault locating is disabled.

When Probe Type is set to APM2.0 Probe, configure the following parameters:

Probe Version: Select a probe version.

Probe Upgrade Policy: Select Automatic upgrade upon restart or Manual upgrade upon restart.

  • Automatic upgrade upon restart: The system downloads the image upon each restart.
  • Manual upgrade upon restart: If a local image is available, it will be used. If no local image is available, the system downloads the probe image.

APM Environment: (Optional) Enter the APM environment information.

APM Business: Select an existing APM service.

APM Sub-Business: (Optional) Enter a sub-service.

Access Key Id: The system automatically obtains the key information of APM. You can go to the APM console to check the key details.

For details about the APM 2.0 parameters, see APM parameters.

Control Options

Continue the task even if this action fails.

Overtime

Maximum execution duration of an action, in minutes. If the task duration exceeds the specified time before you stop the application, the action will be timed out. Value range: 1–30

Online Manifest File Editing

When File Source is set to Repo, you can edit the manifest file online. Click the icon next to Manifest File to go to the online editing page.

To modify the manifest file in CodeArts Repo, you must have the corresponding member permissions. For details, see section "Repository Member Permission" of CodeArts Repo.

  • Click the icon to perform basic syntax verification on the content of the manifest file to better optimize your code.
  • Click the icon to optimize the manifest file format.
  • Click the icon to copy all the content of the manifest file.
  • Click the icon to display the content of the manifest file in full screen to better browse the code.