Home
Volcano
Volcano Createnamespacedjob Example
Volcano Createnamespacedjob Example
Batch Processing Cloud-Native HPC Incubating Kubernetes Scheduling Machine-Learning
Volcano Createnamespacedjob Example is an example object payload from Volcano, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
request response
Example Payload
{
"request": {
"method": "POST",
"url": "https://kubernetes-api-server/apis/batch.volcano.sh/v1alpha1/namespaces/ml-workloads/jobs",
"headers": {
"Authorization": "Bearer <serviceaccount-token>",
"Content-Type": "application/json"
},
"body": {
"apiVersion": "batch.volcano.sh/v1alpha1",
"kind": "Job",
"metadata": {
"name": "pytorch-training-job",
"namespace": "ml-workloads",
"labels": {
"framework": "pytorch",
"team": "ml-platform"
}
},
"spec": {
"schedulerName": "volcano",
"minAvailable": 3,
"queue": "ml-queue",
"priorityClassName": "high-priority",
"maxRetry": 3,
"plugins": {
"pytorch": []
},
"tasks": [
{
"name": "master",
"replicas": 1,
"template": {
"spec": {
"containers": [
{
"name": "master",
"image": "pytorch/pytorch:2.0-cuda11.7",
"resources": {
"requests": {"cpu": "4", "memory": "16Gi", "nvidia.com/gpu": "1"},
"limits": {"cpu": "4", "memory": "16Gi", "nvidia.com/gpu": "1"}
}
}
],
"restartPolicy": "Never"
}
}
},
{
"name": "worker",
"replicas": 3,
"template": {
"spec": {
"containers": [
{
"name": "worker",
"image": "pytorch/pytorch:2.0-cuda11.7",
"resources": {
"requests": {"cpu": "4", "memory": "16Gi", "nvidia.com/gpu": "1"},
"limits": {"cpu": "4", "memory": "16Gi", "nvidia.com/gpu": "1"}
}
}
],
"restartPolicy": "Never"
}
}
}
],
"policies": [
{"event": "PodEvicted", "action": "RestartJob"},
{"event": "PodFailed", "action": "AbortJob"}
]
}
}
},
"response": {
"status": 201,
"body": {
"apiVersion": "batch.volcano.sh/v1alpha1",
"kind": "Job",
"metadata": {
"name": "pytorch-training-job",
"namespace": "ml-workloads",
"uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"resourceVersion": "12345",
"creationTimestamp": "2026-05-03T10:00:00Z"
},
"status": {
"state": {
"phase": "Pending"
}
}
}
}
}
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/volcano-createNamespacedJob-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.