Skip to main content
Version: v0.5

Resources

View Resource List

Resources belong to an environment, and you can view the list of resources in the environment view.

  1. Click on Applications in the left navigation bar.
  2. By default, you will enter the view of the first environment. You can switch to view resources under different projects or environments through the top-level breadcrumb. You can also set the default environment to enter through the breadcrumb.
  3. In the Resources tab, you can view the list of resources under this environment.

resource-list

View Resource Details

  1. Navigate to the Resources tab in the environment view.
  2. Find the resource you need to view and click its name to enter the detail page.

Create Resource

  1. Navigate to the Resources tab in the environment view.
  2. Click New Resource.
  3. Select the resource type. If you want to create from template, enable the Use Template option, then select the template and version. For more information about resource types, please refer to Resource Definition.
  4. Enter the Name, Description, and Labels. The name should be unique under the same environment.
  5. Fill in the configuration form, configuration items depends on the template or resource type you selected.
  6. Click the Save and Deploy button.

resource-create

Create Resource Draft

You can create a resource as draft.

  1. Navigate to the Resources tab in the environment view.
  2. Click New Resource.
  3. Select the resource type. If you want to create from template, enable the Use Template option, then select the template and version.
  4. Enter the Name, Description, and Labels. The name should be unique under the same environment.
  5. Fill in the configuration form, configuration items depends on the template or resource type you selected.
  6. Click the downward arrow to the right of the Save and Deploy button.
  7. Click Save Draft.

resource-create-draft

Edit Resource

  1. Navigate to the Resources tab in the environment view.
  2. Find the resource you need to edit, click Edit.
  3. Modify the configuration as needed, then click the Save and Deploy button. The resource will be deployed once after editing.

Resource Dependency

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 container service depends on a MySQL resource, the container service can reference the MySQL endpoint in its environment variable as ${res.my-db-name.address}. The output reference is in the following format: ${res.<Resource Name>.<Resource Output Name>}.

resource-ref

Rollback Resource

  1. Navigate to the Resources tab in the environment view.
  2. Find the resource you need to rollback.
  3. Click on the operation drop-down button, select Rollback.

resource-rollback

  1. Choose the historic version you need to roll back to.
  2. Confirm the configuration changes for the rollback operation, click the Rollback button to complete the rollback operation.

resource-rollback2

Clone Resources

  1. Navigate to the Resources tab in the environment view.
  2. Select the resources you need to clone, click the Clone button.

resource-clone

  1. Select the target environment of the clone.
  2. If you need to adjust configuration of cloned resources, click the block you want to modify, modify the configuration in the pop-up window, and click the Confirm button.
  3. Click the Save and Deploy button to complete the clone.

resource-clone-edit

Delete Resource

Delete resource will delete resource configuration in Walrus, and remove all components of the resource.

  1. Navigate to the Resources tab in the environment view.
  2. Find the resource you need to delete.
  3. Make sure no other resources depend on it. Click the Delete button.
  4. In the pop-up window, you can choose whether to cleanup the components. If you uncheck Clean up all components, the components of the resource will be retained, but will no longer be managed by Walrus.
  5. Click the Confirm button to complete the deletion.

resource-del

Start Resource

Start operation will start all components of the resource, used to restore stopped resources or deploy draft resources to the environment.

  1. Navigate to the Resources tab in the environment view.
  2. Locate Stopped or Undeployed resource you need to start.
  3. Click the Start button.

resource-start

Stop Resource

Stop operation will stop all components of the resource, unlike delete operation, stop operation will not delete the resource configuration in Walrus.

  1. Navigate to the Resources tab in the environment view.
  2. Locate Ready resource you need to stop.

resource-stop

  1. Click the Stop button,then click the Confirm button in the pop-up window to complete the stop operation.

Caution: Whether a resource can be stopped depends on the resource's labels. If the resource's labels contain walrus.seal.io/stoppable: "true", the resource can be stopped. By default, resources in development or staging environments will automatically add this label when created. You can actively declare this label when creating resources so that resources can be stopped in production environments.

resource-stop2

Components

Components are the entities generated by the resource deployment. In the resource list or 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 List

View the component list in the resource list page:

  1. Enter the Resources tab of the environment view.
  2. Find the resource you need to view the component list, click the arrow besides the resource name to expand the component list.

resource-component-list

View the component list in the resource detail page:

  1. Enter the Resources tab of the environment view.
  2. Find the resource you need to view the component list, click the resource name to enter the detail page.
  3. Click the Components tab to view the component list.

resource-component-list2

View Component Logs

Note: The operation to view logs is available for specific component types.

  1. View the component list.
  2. Find the component whose logs you need to view and click the Logs operation.

resource-component-logs

Connect to the Component via Terminal

Note: The terminal operation is available for specific component types.

  1. View the component list.
  2. Find the component you need to connect to the terminal and click the Terminal operation.

resource-component-terminal

View Components' Dependency Graph

  1. Enter the resource detail page.
  2. Click the Components tab to view the component list.
  3. Switch to the graph view to see dependency graph under the current resource.

For more details on dependency graphs, please refer to Dependency Graph.

resource-component-graph

resource-component-graph2