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
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:
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
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.
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot