Automatically Creating a Component Using a Component Template
- Log in to ServiceStage.
- Choose Application Management. The application list is displayed.
- Click the application created in Creating an Application (for example, template-demo-app). The Overview page is displayed.
- Click Create Component > Use Template and set component parameters by referring to the following table.
Parameter
Description
Application
By default, the application selected in 3 is selected, for example, template-demo-app.
Environment
Select the Kubernetes environment created when Creating an Environment, for example, template-demo-env.
Set Template Package
- Select OBS.
- Click Select Software Package.
- Select template-package-demo.zip that has been uploaded to the OBS bucket when Obtaining and Uploading the Component Template Package.
- Click OK.
- Click Next.
- In the Set Parameters area, set Name to image and change its Value to the image package address obtained in Obtaining the Download Address of the Uploaded Image Package.
- Click Create and Deploy and wait until the component is deployed.
- Click Overview and confirm that Status is Running.
- Add the application domain name www.demo.com and the elastic IP address bound during ELB creation in Preparing Resources to the local hosts file.
- Open the CLI and run the following command to access the service provided by the component:
curl http://www.demo.com/hello
If the following information is displayed, the component has been automatically created using the component template:
Hello World
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