Services and Resources
View Service and Resource List
Services and resources belong to an environment, and you can view the list of services and resources in the environment view.
- Click on
Application Management
in the left navigation bar. - Select a project through the drop-down button of the top-level breadcrumb.
- In the environment tab of the project view, find the environment you need to operate on, and click on the environment name to enter the environment view.
- In the
Services/Resources
tab, you can view the list of services and resources under this environment. You can switch to view services and resources under different projects or environments through the top-level breadcrumb.
View Service or Resource Details
- Enter the
Services/Resources
tab of the environment view. - Find the service or resource you need to view and click its name to enter the detail page.
Create Service or Resource
- Enter the
Services/Resources
tab of the environment view. - Click
New
, selectService
orResource
. - For service creation, select the template and version. For resource creation, select the resource type.
- Enter the
Name
,Description
, andLabels
. The name should be unique under the same environment. - Fill in the configuration form, configuration items depends on the template or resource type you selected.
- Click the
Save and Deploy
button.
Create Service or Resource Draft
You can create a service or resource as draft.
- Enter the
Services/Resources
tab of the environment view. - Click
New
, selectService
orResource
. - For service creation, select the template and version. For resource creation, select the resource type.
- Enter the
Name
,Description
, andLabels
. The name should be unique under the same environment. - Fill in the configuration form, configuration items depends on the template or resource type you selected.
- Click the downward arrow to the right of the
Save and Deploy
button. - Click
Save Draft
.
Edit Service or Resource
- Enter the
Services/Resources
tab of the environment view. - Find the service or resource you need to edit, click
Edit
. - Modify the configuration as needed, then click the
Save and Deploy
button. The service or resource will be deployed once after editing.
Service and Resource Dependency
Services and resources can depend on each other by using output references. The referenced entity will be deployed before and deleted after the dependent entities.
For example, if a web service depends on a MySQL resource, the web service can reference the MySQL endpoint in its environment variable as ${resource.my-db-name.address}
.
The output reference is in the following format: ${resource.<Resource Name>.<Resource Output Name>}
and ${service.<Service Name>.<Service Output Name>}
.
Rollback Service or Resource
- Enter the
Services/Resources
tab of the environment view. - Find the service or resource you need to rollback.
- Click on the operation drop-down button, select
Rollback
.
- Choose the historic version you need to roll back to.
- Confirm the configuration changes of the rollback operation, click the
Rollback
button to complete the rollback operation.
Clone Services and Resources
- Enter the
Services/Resources
tab of the environment view. - Select the services and resources you need to clone, click the
Clone
button.
- Select the target environment of the clone.
- If you need to adjust configuration of cloned services and resources, click the block you want to modify, modify the configuration in the pop-up window, and click the
Confirm
button. - Click the
Save and Deploy
button to complete the clone.
Delete Service or Resource
- Enter the
Services/Resources
tab of the environment view. - Find the service or resource you need to delete.
- Make sure no other services and resources depend on it. Click the
Delete
button. - In the pop-up window, you can choose whether to clean up the components. If you uncheck
Clean up all components
, the components of the service or resource will be retained, but will no longer be managed by Walrus. - Click the
Confirm
button to complete the deletion.
Components
Components are the entities generated by the service or resource deployment. In the service or resource detail page, you can view its components, including component name, type, status, create time, etc. You can operate components as needed, such as viewing logs, connecting to the terminal, etc.
View Component Logs
Note: The operation to view logs is available for specific component types.
- Enter the service or resource detail page to view the component list.
- Find the component whose logs you need to view and click the
View Logs
operation.
Connect to Component via Terminal
Note: The terminal operation is available for specific component types.
- Enter the service or resource detail page to view the component list.
- Find the component you need to connect to the terminal and click the
Terminal
operation.
View Components' Dependency Graph
Enter the service/resource detail page and select to switch to the graph view to see dependency graph under the current service/resource.
For more details on dependency graphs, please refer to Dependency Graph.