How to create a Devlab
Make sure you are in a group that has at least theeditor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
To create an interactive development environment, create a Devlab:
- Web console
- CLI
- In the sidebar, go to Serverless AI → Devlabs.
- Click Create Devlab.
- Specify the Devlab name.
-
Configure Devlab settings:
- Select Custom to provide your own container image, or Template to start from a template.
- If you selected Custom, in Image path, set the path to the container image.
- If you use a private registry, click Add registry and provide the details for your registry.
- In Ports, set the container ports for the Devlab. For each port, select HTTP or TCP. You can add multiple ports. The primary web UI port gets the Devlab’s managed HTTPS URL; other ports are shown in the Devlab status but are not publicly routed.
- (Optional) In Entrypoint command, specify the entrypoint command for the container. If you need to pass container arguments, specify them in this field as well.
- (Optional) In Environment variables, specify environment variables in key-value pairs.
- (Optional) In Secret environment variables, click Create secret to store a sensitive value in SecretStash and inject it as an environment variable. In the window that opens, specify the Key (environment variable name) and Value (secret data), then click Create.
-
(Optional) Enable Token authentication if you want to protect the Devlab web UI with a token.
- Under Token, click Create.
- In the Create secret with token window, specify the secret Name and, optionally, a Description.
- In Token, enter a token or click Generate. Copy and save the token securely before proceeding. The token is saved as the first value in a SecretStash secret.
- Click Create secret.
- (Optional) In Platform, select With GPUs or Without GPUs, then select the platform.
- (Optional) In Settings, select the preset. The preset must match the selected platform.
-
(Optional) Configure Storage settings:
- Under Disk size, set the container disk size. See how disk performance depends on disk size. Data under the workspace path on this disk persists across start and stop. The workspace is a path on the container disk (
/workspaceby default, or the path declared by the template). Its size is limited only by the disk size. While the Devlab is stopped, the entire container disk continues to be billed. - Under Mounted volumes, click Attach volume to attach a bucket or a filesystem. You can create a bucket or filesystem, or use an existing one. To create a new bucket, see Bucket parameters. To create a new filesystem, see Volume parameters.
- Under Disk size, set the container disk size. See how disk performance depends on disk size. Data under the workspace path on this disk persists across start and stop. The workspace is a path on the container disk (
- (Optional) In Files, upload files or create text files to inject into the container. The maximum file size is 64 KB.
-
Configure the Network section:
- Select a network and a subnet, or create a new subnet.
- Select the IP address type: Auto dynamic IP or Private IP. A public IP address is not required to open the Devlab web UI over the managed HTTPS URL. If you add an SSH key, make sure that network access allows SSH so you can connect to the VM.
- Click Create Devlab.
How to open a Devlab
Make sure you are in a group that has at least theviewer role within your tenant; for example, the default viewers group. You can check this in the Administration → IAM section of the web console.
When a Devlab is running, you can open its web UI over a managed HTTPS URL. A public IP address is not required. If you configured an SSH key and network access that allows SSH, you can also connect to the VM by SSH.
- Web console
- CLI
- In the sidebar, go to Serverless AI → Devlabs.
- Open the page of the required Devlab.
- Wait until the Devlab is running. Then, in the Network section, copy the public Devlab address from the Public Devlabs field.
- In a browser, open the URL. For the JupyterLab template, enter the Jupyter token in the JupyterLab password field. If you created the Devlab in the console, use the token that the console generated.
How to check Devlab logs
Make sure you are in a group that has at least theviewer role within your tenant; for example, the default viewers group. You can check this in the Administration → IAM section of the web console.
To view logs from a running or stopped Devlab:
- Web console
- CLI
- In the sidebar, go to Serverless AI → Devlabs.
- Next to the Devlab, click View logs. Alternatively, select the Devlab and switch to the Logs tab.
How to stop or start a Devlab
Make sure you are in a group that has at least theeditor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
If you don’t currently need your Devlab but you want to preserve it, you can stop the Devlab and then start it later. While the Devlab is stopped, you are not billed for computing resources, but you are billed for the entire container disk. Data under the workspace path persists across start and stop. If you mounted a volume to the Devlab, you are also charged for the volume even if the Devlab is stopped.
- Web console
- CLI
- In the sidebar, go to Serverless AI → Devlabs.
- Find the Devlab and then click → Stop or Start.
- In the window that opens, confirm the action.
How to delete a Devlab
Make sure you are in a group that has at least theeditor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
When you delete a Devlab, Serverless AI automatically deletes its VM and container disk.
If you no longer need the Devlab, delete it:
- Web console
- CLI
- In the sidebar, go to Serverless AI → Devlabs.
- Find the Devlab and then click → Delete.
- In the window that opens, confirm the deletion.