Templates
This article explains the procedure to manage templates.
A template is a pre-set configuration that is used to quickly configure and submit workloads using existing assets. A template consists of all the assets a workload needs, allowing researchers to submit a workload in a single click, or make subtle adjustments to differentiate them from each other.
Workspace templates table¶
Access to the Templates table can be found on the left-hand menu in the Run:ai platform.
The Templates table provides a list of all the templates defined in the platform, and allows you to manage them.
Flexible Management
It is also possible to manage templates directly for a specific user, application, project, or department.
The Templates table consists of the following columns:
Column | Description |
---|---|
Scope | The scope to which the subject has access. Click the name of the scope to see the scope and its subordinates |
Environment | The name of the environment related to the workspace template |
Compute resource | The name of the compute resource connected to the workspace template |
Data source(s) | The name of the data source(s) connected to the workspace template |
Created by | The subject that created the template |
Creation time | The timestamp for when the template was created |
Cluster | The cluster name containing the template |
Customizing the table view¶
- Filter - Click ADD FILTER, select the column to filter by, and enter the filter values
- Search - Click SEARCH and type the value to search by
- Sort - Click each column header to sort by
- Column selection - Click COLUMNS and select the columns to display in the table
- Download table - Click MORE and then Click Download as CSV
- Refresh (optional) - Click REFRESH to update the table with the latest data
- Show/Hide details (optional) - Click to view additional information on the selected row
Adding a new workspace template¶
To add a new template:
- Click +NEW TEMPLATE
- Set the scope for the template
- Enter a name for the template
- Select the environment for your workload
-
Select the node resources needed to run your workload
- or -
Click +NEW COMPUTE RESOURCE -
Set the volume needed for your workload
- Create a new data source
- Set auto-deletion, annotations and labels, as required
- Click CREATE TEMPLATE
Editing a template¶
To edit a template:
- Select the template from the table
- Click Rename to provide it with a new name
- Click Copy & Edit to make any changes to the template
Deleting a template¶
To delete a template:
- Select the template you want to delete
- Click DELETE
- Confirm you want to delete the template
Using API**¶
Go to the Workload template API reference to view the available actions