Creating a Region Release Task Using a Release Task Template
ServiceStage supports up to 1000 region release tasks in the same project.
Create a region release task using a release task template to combine applications, components, and build tasks in the same region in different phases as required and orchestrate and release them.
Release Task Template Description
The created template file needs to be compressed into a .zip package. A release task template package can contain multiple applications. An application can contain multiple components. Example directory structure of a release task template package:
release/ |-- app-1 | |-- app.yaml | |-- component-1/ | | |-- spec.yaml | | |-- variables.yaml | | |-- values.yaml | | |-- component/ | | | |-- demo_component.yaml | | | |-- demo_config.yaml | | | |-- deployment.yaml | | | |-- configmap.yaml | | | |-- service.yaml | | |--...(Other Kubernetes resource files) | | |-- README.md | |-- component-2/ ...... |-- app-2 ......
release indicates the name of the released template package, app-1 and app-2 indicate the application directories in the template package, and component-1 and component-2 indicate the component directories of the application.
- Description of files in the application directory
- app.yaml: application description file, which specifies the application name and the enterprise project to which the application belongs. Example file content:
kind: ServiceStageApplication spec: name: test-application-zyh enterprise_project_id: 0
- spec.yaml: application configuration information file, which contains the model version and model type. Example file content:
# Model version number. Currently, only v1.0.0 is available. model_version: v1.0.0 # Model type. Application indicates an application model. model_type: Application
- values.yaml: file that describes the default values of variables. Example file content:
namespace: demo dep_name: demo-dep svc_port: 8080 value: World image: swr.example.com/ss/demo-app:latest
- variables.yaml: supported variable declaration file. All variables are declared in this file, including the variable name, type, description, and default value. Example file content:
variable: namespace: type: string default: demo description: namespace dep_name: type: string default: demo-dep description: workload name svc_port: type: integer default: 8080 description: service port number value: type: string default: World description: Hello interface response data cce_resource: type: cce description: CCE resource image: type: string description: workload image
- app.yaml: application description file, which specifies the application name and the enterprise project to which the application belongs. Example file content:
- Description of files in the component directory
Prerequisites
- You have compressed the prepared release task template files into a ZIP package and uploaded the package to the repository. For details, see Release Task Template Description.
- Upload the template package to the SWR repository. For details, see Uploading a Software Package.
If PKIToken is disabled, the SWR repository is not supported.
- Select the corresponding template package from OBS. Upload the template package to the OBS bucket in advance. For details, see Streaming Upload (PUT).
- If you need to use JFrog (example) as the repository for storing the template package, you can use an HTTP/HTTPS custom file download address as the template package download address. Upload the template package to the custom file address in advance.
- Upload the template package to the SWR repository. For details, see Uploading a Software Package.
- If the release task template contains environment creation and basic resource tasks, contact the administrator to grant the RFS permissions to the user group to which the operation account belongs by referring to the following table. In addition, grant the permission to create basic resources to the user group to which the operation account belongs. For details, see Assigning Permissions to a User Group.
ServiceStage Permission of the User Group to Which the Operation Account Belongs
Required RFS Permission of the User Group to Which the Operation Account Belongs
ServiceStage FullAccess
RF FullAccess
ServiceStage Administrator
ServiceStage Developer
Procedure
- Log in to ServiceStage.
- Choose Release Management.
- Click Try new edition now or Try New Edition to switch to the Release Management page of the new version.
The data of the old and new versions are isolated. Switching them will not cause release task data loss.
- Choose Region Release Tasks.
- Click Use Template and set the parameters by referring to the following table. Parameters marked with an asterisk (*) are mandatory.
Parameter
Description
*Release Task
The release task name must be unique in the same enterprise project.
Enter 2 to 64 characters. Start with a letter and end with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).
*Enterprise Project
Enterprise projects let you manage cloud resources and users by project.
It is available after the function is enabled. For details, see Enabling the Enterprise Project Function.
- Click the drop-down list to select an existing enterprise project.
- Click Create Enterprise Project to create an enterprise project and select it. For details, see Creating an Enterprise Project
Description
Description of a release task.
- Click
.
- Enter up to 128 characters.
- Click
.
- Set Set Template Package. Select the uploaded release task template package based on the template package storage mode by referring to the following table.
- Click Next.
- In the Preview Template Package area, you can view the details of the release task template file.
- In the Set Parameters area, you can view and modify the release task parameters.
- Click Create and Deploy.
- On the Release Process View page, you can view the release task process details.
- After the release task is created, its Release Status is Initialized. For details about how to check the release task status, see Viewing Region Release Task Details.
- After a release task is created, you can manage the release task by referring to Managing Region Release Tasks.
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