Copy {
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "[email protected] ",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "[email protected] ",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"command": "python",
"args": "-x my-script.py",
"runAsUid": 500,
"runAsGid": 30,
"supplementalGroups": "2,3,5,8",
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"nodeType": "my-node-type",
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"podAffinity": {
"type": "Required",
"key": "text"
},
"terminateAfterPreemption": false,
"autoDeletionTimeAfterCompletionSeconds": 15,
"terminationGracePeriodSeconds": 20,
"backoffLimit": 3,
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"connections": [],
"completions": 1,
"parallelism": 1,
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"initializationTimeoutSeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"[email protected] ",
"[email protected] "
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
},
"distributed": {
"numWorkers": 1,
"noMaster": true,
"distFramework": "MPI",
"master": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"command": "python",
"args": "-x my-script.py",
"runAsUid": 500,
"runAsGid": 30,
"supplementalGroups": "2,3,5,8",
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"nodeType": "my-node-type",
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"podAffinity": {
"type": "Required",
"key": "text"
},
"terminateAfterPreemption": false,
"autoDeletionTimeAfterCompletionSeconds": 15,
"terminationGracePeriodSeconds": 20,
"backoffLimit": 3,
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"connections": [],
"completions": 1,
"parallelism": 1,
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"initializationTimeoutSeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"[email protected] ",
"[email protected] "
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}
}
}