Retrieve a list of templates with details.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "entries": [
- {
- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}
}
], - "pagination": {
- "limit": 0,
- "offset": 0,
- "nextOffset": 0
}
}
Retrieve the number of templates.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "count": 1
}
Create a new workspace template.
required | object (TemplateCreationMetaFields) |
object or null (WorkspaceSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template.",
- "scopeType": "system",
- "scopeId": "string"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Retrieve a list of workspace templates with details.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "entries": [
- {
- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
], - "pagination": {
- "limit": 0,
- "offset": 0,
- "nextOffset": 0
}
}
Retrieve the details of a workspace template using its id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Delete a workspace using its id.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Patch a workspace template using its id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "fieldsToClear": [
- "spec.image"
]
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
update a workspace template using its id.
required | object (TemplateUpdateMetaFields) |
object or null (WorkspaceSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Create a new training template.
required | object (TemplateCreationMetaFields) |
object or null (TrainingSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template.",
- "scopeType": "system",
- "scopeId": "string"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Retrieve a list of training templates with details.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "entries": [
- {
- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
], - "pagination": {
- "limit": 0,
- "offset": 0,
- "nextOffset": 0
}
}
Retrieve the details of a training template using its id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Delete a training using its id.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Patch a training template using its id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "fieldsToClear": [
- "spec.image"
]
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
update a training template using its id.
required | object (TemplateUpdateMetaFields) |
object or null (TrainingSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "priorityClass": "build",
- "completions": 1,
- "parallelism": 1,
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Create a new distributed template.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template.",
- "scopeType": "system",
- "scopeId": "string"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "combinedMasterSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Retrieve a list of distributed templates with details.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "entries": [
- {
- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": { }
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": null,
- "key": null
}, - "configMap": {
- "name": null,
- "key": null
}, - "podFieldRef": {
- "path": null
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": null,
- "quantity": null,
- "exclude": null
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": null,
- "mountPath": null,
- "exclude": null
}
], - "pvc": [
- {
- "name": null,
- "path": null,
- "existingPvc": null,
- "claimName": null,
- "readOnly": null,
- "ephemeral": null,
- "claimInfo": null,
- "exclude": null
}
], - "hostPath": [
- {
- "name": null,
- "path": null,
- "readOnly": null,
- "mountPath": null,
- "mountPropagation": null,
- "exclude": null
}
], - "nfs": [
- {
- "name": null,
- "path": null,
- "readOnly": null,
- "server": null,
- "mountPath": null,
- "exclude": null
}
], - "git": [
- {
- "name": null,
- "repository": null,
- "branch": null,
- "revision": null,
- "path": null,
- "passwordSecret": null,
- "secretKeyOfUser": null,
- "secretKeyOfPassword": null,
- "exclude": null
}
], - "configMapVolume": [
- {
- "name": null,
- "configMap": null,
- "mountPath": null,
- "subPath": null,
- "exclude": null
}
], - "secretVolume": [
- {
- "name": null,
- "mountPath": null,
- "secret": null,
- "exclude": null
}
], - "s3": [
- {
- "name": null,
- "bucket": null,
- "path": null,
- "url": null,
- "accessKeySecret": null,
- "secretKeyOfAccessKeyId": null,
- "secretKeyOfSecretKey": null,
- "exclude": null
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "combinedMasterSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
], - "pagination": {
- "limit": 0,
- "offset": 0,
- "nextOffset": 0
}
}
Retrieve the details of a distributed template using its id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "combinedMasterSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Delete a distributed using its id.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Patch a distributed template using its id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "fieldsToClear": [
- "spec.image"
]
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "combinedMasterSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Update a distributed template using its id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "masterSpecSameAsWorker": true,
- "master": {
- "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": null,
- "readOnlyMany": null,
- "readWriteMany": null
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "numWorkers": 1,
- "distributedFramework": "MPI",
- "slotsPerWorker": 1,
- "sshAuthMountPath": "/root/.ssh",
- "minReplicas": 0,
- "maxReplicas": 0,
- "cleanPodPolicy": "None",
- "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}, - "combinedMasterSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "tty": true,
- "stdin": true,
- "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "terminateAfterPreemption": false,
- "autoDeletionTimeAfterCompletionSeconds": 15,
- "terminationGracePeriodSeconds": 20,
- "backoffLimit": 3,
- "restartPolicy": "Always",
- "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
], - "s3": [
- {
- "name": "storage-instance-a",
- "bucket": "my-bucket",
- "path": "/container/my-bucket",
- "accessKeySecret": "my-access-key-secret",
- "secretKeyOfAccessKeyId": "AccessKeyId",
- "secretKeyOfSecretKey": "SecretKey",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8",
- "allowPrivilegeEscalation": false,
- "hostIpc": false,
- "hostNetwork": false
}
}
}
Create a new inference template.
required | object (TemplateCreationMetaFields) |
object or null (InferenceSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template.",
- "scopeType": "system",
- "scopeId": "string"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
Retrieve a list of inference templates with details.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "entries": [
- {
- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": null,
- "port": null,
- "host": null,
- "scheme": null
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": null,
- "storageClass": null,
- "accessModes": null,
- "volumeMode": null
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
], - "pagination": {
- "limit": 0,
- "offset": 0,
- "nextOffset": 0
}
}
Retrieve the details of a inference template using its id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
Delete a inference using its id.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Update a inference template using its id.
required | object (TemplateUpdateMetaFields) |
object or null (InferenceSpecSpec) Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request. |
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}
Patch a inference template using its id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "meta": {
- "name": "my-template-name",
- "description": "description of my template."
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "fieldsToClear": [
- "spec.image"
]
}
{- "meta": {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "my-template-name",
- "description": "description of my template.",
- "workloadType": "Workspace",
- "scopeType": "system",
- "scopeId": "string",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "departmentId": 2,
- "projectId": 1,
- "createdBy": "test@lab.com",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedBy": "test@lab.com",
- "updatedAt": "2022-01-01T03:49:52.531Z"
}, - "spec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}, - "runnable": {
- "isRunnable": false,
- "issue": "mandatory image is not provided"
}, - "combinedSpec": {
- "command": "python",
- "args": "-x my-script.py",
- "image": "python:3.8",
- "imagePullPolicy": "Always",
- "workingDir": "/home/myfolder",
- "createHomeDir": true,
- "probes": {
- "readiness": {
- "initialDelaySeconds": 0,
- "periodSeconds": 1,
- "timeoutSeconds": 1,
- "successThreshold": 1,
- "failureThreshold": 1,
- "handler": {
- "httpGet": {
- "path": "/",
- "port": 1,
- "host": "example.com",
- "scheme": "HTTP"
}
}
}
}, - "nodeType": "my-node-type",
- "nodePools": [
- "my-node-pool-a",
- "my-node-pool-b"
], - "podAffinity": {
- "type": "Required",
- "key": "string"
}, - "environmentVariables": [
- {
- "name": "HOME",
- "value": "/home/my-folder",
- "secret": {
- "name": "postgress_secret",
- "key": "POSTGRES_PASSWORD"
}, - "configMap": {
- "name": "my-config-map",
- "key": "MY_POSTGRES_SCHEMA"
}, - "podFieldRef": {
- "path": "metadata.name"
}, - "exclude": false,
- "description": "Home directory of the user."
}
], - "annotations": [
- {
- "name": "billing",
- "value": "my-billing-unit",
- "exclude": false
}
], - "labels": [
- {
- "name": "stage",
- "value": "initial-research",
- "exclude": false
}
], - "tolerations": [
- {
- "name": "string",
- "operator": "Equal",
- "key": "string",
- "value": "string",
- "effect": "NoSchedule",
- "seconds": 1,
- "exclude": false
}
], - "ports": [
- {
- "container": 8080,
- "serviceType": "LoadBalancer",
- "external": 30080,
- "toolType": "pytorch",
- "toolName": "my-pytorch",
- "name": "port-instance-a",
- "exclude": false
}
], - "exposedUrls": [
- {
- "container": 8080,
- "authorizedUsers": [
- "user-a",
- "user-b"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "toolType": "jupyter",
- "toolName": "my-pytorch",
- "name": "url-instance-a",
- "exclude": false
}
], - "relatedUrls": [
], - "compute": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "storage": {
- "dataVolume": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "mountPath": "/mnt/data",
- "exclude": false
}
], - "pvc": [
- {
- "name": "storage-instance-a",
- "path": "/container/my-claim",
- "existingPvc": false,
- "claimName": "my-claim",
- "readOnly": false,
- "ephemeral": false,
- "claimInfo": {
- "size": "1G",
- "storageClass": "my-storage-class",
- "accessModes": {
- "readWriteOnce": true,
- "readOnlyMany": false,
- "readWriteMany": false
}, - "volumeMode": "Filesystem"
}, - "exclude": false
}
], - "hostPath": [
- {
- "name": "storage-instance-a",
- "path": "/container/directory",
- "readOnly": true,
- "mountPath": "/local/directory",
- "mountPropagation": "None",
- "exclude": false
}
], - "nfs": [
- {
- "name": "storage-instance-a",
- "path": "/container/nfs",
- "readOnly": true,
- "server": "my.nfs.com",
- "mountPath": "/local/nfs",
- "exclude": false
}
], - "git": [
- {
- "name": "storage-instance-a",
- "branch": "main",
- "revision": "string",
- "path": "/container/my-repository",
- "passwordSecret": "my-password-secret",
- "secretKeyOfUser": "User",
- "secretKeyOfPassword": "Password",
- "exclude": false
}
], - "configMapVolume": [
- {
- "name": "storage-instance-a",
- "configMap": "string",
- "mountPath": "string",
- "subPath": "string",
- "exclude": false
}
], - "secretVolume": [
- {
- "name": "storage-instance-a",
- "mountPath": "string",
- "secret": "string",
- "exclude": false
}
]
}, - "security": {
- "uidGidSource": "fromTheImage",
- "capabilities": [
- "CHOWN",
- "KILL"
], - "seccompProfileType": "RuntimeDefault",
- "runAsNonRoot": true,
- "readOnlyRootFilesystem": false,
- "runAsUid": 500,
- "runAsGid": 30,
- "supplementalGroups": "2,3,5,8"
}, - "servingPort": {
- "container": 8080,
- "protocol": "http",
- "authorizationType": "public",
- "authorizedUsers": [
- "user.a@example.com",
- "user.b@example.com"
], - "authorizedGroups": [
- "group-a",
- "group-b"
], - "clusterLocalAccessOnly": true
}, - "autoscaling": {
- "metricThresholdPercentage": 1,
- "minReplicas": 0,
- "maxReplicas": 1,
- "initialReplicas": 0,
- "activationReplicas": 1,
- "concurrencyHardLimit": 0,
- "scaleToZeroRetentionSeconds": 3600,
- "scaleDownDelaySeconds": 3600,
- "initializationTimeoutSeconds": 1,
- "metric": "http_requests_total",
- "metricThreshold": 0
}
}
}