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.
Creating Templates¶
To create a template:
- In the left menu, press Templates, then press New Template.
- In the Scope pane, select a Scope.
- In the Template Name pane, enter a name for the template.
-
Select an environment from the tiles. If your environment is not listed, use the Search environments box to find it or press New environment to create a new environment. Press to create an environment if needed. In the Set the connection for your tool(s), enter the URL of the tool if a custom URL has been enabled in the selected environment. Use the Private toggle to lock access to the tool to only the creator of the environment.
In the Runtime Settings:
- Press Commands and Arguments to add special commands and arguments to your environment selection.
- Press Environment variable to add an environment variable. Press again if you need more environment variables.
-
In the Compute resource pane, select a compute resource. Use the Search compute resources if you do not see your resource listed. Press New compute resource to add a new compute resource to the system. Press More settings to add a node type (node affinity) to the compute resource selected.
-
(Optional) In the Volume pane, press +volume to add a new volume to the template.
From the drop down menus select: * Storage class * Access mode * Claim size and units * Volume mode
Set the Volume target location, then select from either a Persistent volume or an Ephemeral volume.
-
In the Data sources pane, select a data source. Press New data source to add a new data source to the system.
-
In the General pane, choose to add the following:
- Auto-deletion—the time after which a workload that has completed or failed will be deleted. Press +Auto-deletion then configure the time in days, hours, minutes, and seconds.
- Annotation—press +Annottion then enter a name and a value. You can add multiple annotations by pressing the +Annottion.
- Label—press +Label then enter a name and a value. You can add multiple labels by pressing the +Label.
-
Press Create template when your configuration is complete.