Help Center/ CodeArts Deploy/ User Guide/ Managing Applications/ Deployment Actions/ Deploying an Application in Kubernetes (CCE Cluster) Using Manifest
Updated on 2024-09-05 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.
NOTICE:

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.

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.

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 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.