diff --git a/onyxia-api/src/main/resources/schemas/nodeSelector-gpu.json b/onyxia-api/src/main/resources/schemas/nodeSelector-gpu.json new file mode 100644 index 00000000..a4dab59c --- /dev/null +++ b/onyxia-api/src/main/resources/schemas/nodeSelector-gpu.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Node Selector", + "type": "object", + "description": "Node selector constraints for the pod", + "additionalProperties": { + "type": "string", + "description": "Key-value pairs to select nodes" + }, + "x-onyxia": { + "hidden": false, + "overwriteDefaultWith": "region.nodeSelector" + } +} \ No newline at end of file diff --git a/onyxia-api/src/main/resources/schemas/spark.json b/onyxia-api/src/main/resources/schemas/spark.json new file mode 100644 index 00000000..3200929d --- /dev/null +++ b/onyxia-api/src/main/resources/schemas/spark.json @@ -0,0 +1,47 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Spark", + "type": "object", + "description": "spark specific configuration", + "properties": { + "sparkui": { + "type": "boolean", + "title": "SparkUI", + "description": "Enable Spark monitoring interface", + "default": true + }, + "default": { + "type": "boolean", + "title": "Create a spark config", + "description": "Create a default spark config in spark-default.conf", + "default": true + }, + "disabledCertChecking": { + "title": "Disable certificate checking ", + "type": "boolean", + "description": "Disable certificate checking for your S3 storage, do not use it in production", + "default": false + }, + "userConfig": { + "type": "object", + "title": "Create a spark config", + "description": "Create a default spark config in spark-default.conf", + "default": { + "spark.dynamicAllocation.enabled": "true", + "spark.dynamicAllocation.initialExecutors": "1", + "spark.dynamicAllocation.minExecutors": "1", + "spark.dynamicAllocation.maxExecutors": "10", + "spark.executor.memory": "2g", + "spark.driver.memory": "2g", + "spark.dynamicAllocation.executorAllocationRatio": "1", + "spark.dynamicAllocation.shuffleTracking.enabled": "true", + "spark.hadoop.fs.s3a.bucket.all.committer.magic.enabled": "true" + }, + "hidden": { + "value": false, + "path": "default", + "isPathRelative": true + } + } + } +} \ No newline at end of file