Exporting Applications
To standardize the export process of applications between development, testing, and production environments, and to facilitate the rapid migration of business to new environments, you can export native applications as application templates (Charts) or export simplified YAML files that can be used directly for deployment. This allows the native application to run in different environments or namespaces. You can also export YAML files to a code repository to deploy applications across clusters quickly using GitOps functionality.
TOC
Exporting Helm Charts
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click on Application Management > Native Applications.
-
Click on the application name of the type
Custom Application. -
Click on Actions > Export; you can also export a specific version from the application detail page.
-
Choose one export method as needed and refer to the following instructions to configure the relevant information.
-
Exporting Helm Charts to a template repository with management permissions
Note: The template repository is added by the platform administrator. Please contact the platform administrator to obtain a valid template repository of type Chart or OCI Chart with Management permissions.
-
Exporting Helm Charts to local for manual upload to the template repository: Select Local as the target location and choose Helm Chart as the file format to generate a Helm Chart package which will be downloaded locally for offline transmission.
-
-
Click Export.
Follow-Up Actions
-
If you export the Helm Chart to local, you will need to add the template to a template repository with management permissions.
-
Regardless of the export method chosen, you can refer to Creating Native Applications - Template Method to create a
Template Applicationtype of native application in a non-current namespace.
Exporting YAML to Local
Steps
Method 1
-
Access the Container Platform.
-
In the left navigation bar, click on Application Management > Native Applications.
-
Click on application name.
-
Click on Actions > Export; you can also export a specific version from the application detail page.
-
Select Local as the target location and YAML as the file format, at which point you can export a simplified YAML file that can be deployed directly in other environments.
-
Click Export.
Method 2
-
Access the Container Platform.
-
In the left navigation bar, click on Application Management > Native Applications.
-
Click on application name.
-
Click on the YAML tab, configure settings as needed, and preview the YAML file.
-
Click Export.
Follow-Up Actions
After exporting the simplified YAML, you can refer to Creating Native Applications - YAML Method to create a Custom Application type of native application in a non-current namespace.
Exporting YAML to Code Repository (Alpha)
Precautions
-
Only platform administrators and project administrators can directly export native application YAML files to the code repository.
-
Template Applicationsdo not support exporting Kustomize formatted application configuration files or directly exporting YAML files to the code repository; you can first detach from the template and convert it to aCustom Application.
Steps
-
Access the Container Platform.
-
In the left navigation bar, click on Application Management > Native Applications.
-
Click on the application name of type
Custom. -
Click on Actions > Export; you can also export a specific version from the application detail page.
-
Choose one export method as needed and refer to the following instructions to configure the relevant information.
-
Exporting YAML to a code repository:
-
Exporting Kustomize-type files to local for manual upload to the code repository: Select Local as the target location and choose Kustomize as the file format to export the Kustomize-type application configuration file locally. This file supports differentiated configurations and is suitable for cross-cluster application deployments.
-
-
Click Export.
Follow-Up Actions
After exporting the YAML to a Git code repository, you can refer to Creating GitOps Applications to create a Custom Application type of GitOps application across clusters.