Help Center> CodeArts Deploy> User Guide> Managing Applications> Deployment Actions> Deploying an Application in Kubernetes (CCE Cluster) Using Manifest
Updated on 2023-11-28 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 YAML file defining Kubernetes objects.

Prerequisites

A CCE cluster is available.

Procedure

Table 1 Parameters

Parameter

Description

Action Name

Name of an action displayed in the deployment actions area.

File Source

Select the source of the YAML file to be deployed: Artifact, Repo, or OBS. Visit the Kubernetes official website to learn about YAML files.

YAML file/Folder

Select the target YAML file or folder to be deployed.

Tenant

  • 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

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

Editing YAML Online

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

To modify the YAML 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 YAML file to better optimize your code.
  • Click the icon to optimize the YAML file format.
  • Click the icon to copy the content of the YAML file.
  • Click the icon to display the content of the YAML file in full screen to better browse the code.