v1

latestSwagger 2.02026-08-04232286653.5 KB
Slurm Clusters

Create a new slurm cluster owned by the logged in user.

A successful response from this resource will contain the async operation ID.

post/projects/{project_id}/slurm/clusters

Path parameters

project_idstring required

Request body

home_volume_sizestring

Size of the shared home volume as a Kubernetes quantity string (e.g. "10Ti"). Set empty to omit.

locationstring required

Location to create the Slurm cluster in.

login_node_typestring

Node type to use for Slurm Controller and Login.

login_replicasinteger

Number of replica pods to use for LoginSet.

namestring required

Name of the Slurm cluster.

root_ssh_pub_keysstring[] required

An array of SSH public keys which will be used to allow access as root user. This will be mounted as the "root/.ssh/authorized_keys" file.

subnet_idstring

The ID of the subnet to deploy the Slurm cluster into.

internal_configSlurmClusterInternalConfig

SlurmClusterInternalConfig holds internal-only configuration that is used for support and development purposes only.

Example request

{
  "location": "us-northcentral1-a",
  "name": "my-slurm-cluster",
  "root_ssh_pub_keys": [
    "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D"
  ]
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}