kubesphere-volcano
What it does
This skill helps an AI agent run batch and training jobs with the Volcano scheduler in KubeSphere. It is for teams that run machine learning training or large batch jobs on a cluster.
When to use it
- ✓When you want to start a PyTorch, TensorFlow or MPI training job on the cluster.
- ✓When you need to create or change a queue that controls how jobs are scheduled.
- ✓When a Volcano job is stuck in pending and you want the scheduling problem found.
Skill link
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-volcano/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you create a PyTorch training job on our cluster with two workers and tell me why it is still pending?”
5 new skills a week. 1 minute to read.
How it works
The agent writes a job manifest from a built-in template and applies it through kubectl or the KubeSphere API. It then checks the job, the queue and the pods to see why a job is waiting.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
KubeSphere Volcano Management
Environment (this KubeSphere instance):
- KubeSphere: Set
KS_HOSTenvironment variable (e.g., http://<kubesphere-host>:30880) - Username: admin (default)
- Password: Set
KS_PASSWORDenvironment variable - Clusters: Run
kubectl get clustersorks_api GET /kapis/cluster.kubesphere.io/v1alpha1/clusters - Volcano Extension: Run
kubectl get extension volcano -n kubesphere-systemor check via KubeSphere console
Use this skill for the full Volcano lifecycle in KubeSphere:
- Create, list, update, delete Volcano Jobs
- Manage Queues for job scheduling
- Generate YAML templates for PyTorch, TensorFlow, MPI, and batch jobs
- Troubleshoot job pending, pod creation, and scheduling issues
Out of scope by default:
- Advanced Volcano CRDs not requested by the user, such as
JobFlow,JobTemplate, orCommand - Deep scheduler configuration without cluster evidence
- Volcano system installation (assume extension is already installed)
If the user explicitly asks for those, acknowledge that they are Volcano capabilities but treat them as a follow-up task.
Response Rules
- Prefer executable output:
JobYAML,QueueYAML, kubectl commands, or a short ordered procedure. - Use
kind: Job(not VolcanoJob), the correct resource type in this KubeSphere environment. - Use
kubectl get jobs.batch.volcano.shor short namevcjob/vjto query jobs. - For uninstall/delete requests, warn that deleting Job resources will terminate running pods.
- Omit optional fields instead of guessing values.
IMPORTANT: The resource type is Job (short: vcjob, vj), NOT VolcanoJob. Use these names in all kubectl commands.
API Usage
This skill supports two approaches for API operations. See Discovery Commands section below for detailed commands.
API Endpoints
KubeSphere provides two API paths for Volcano Job:
Option 1: KubeSphere Extension API (/kapis) - Recommended
Uses volcanojobs resource name:
# Job CRUD (namespace-scoped)
GET /kapis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/volcanojobs
POST /kapis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/volcanojobs
GET /kapis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/volcanojobs/{name}
DELETE /kapis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/volcanojobs/{name}
# Job CRUD (cluster-scoped)
GET /kapis/batch.volcano.sh/v1alpha1/volcanojobs
DELETE /kapis/batch.volcano.sh/v1alpha1/volcanojobs
# PodGroup CRUD (namespace-scoped)
GET /kapis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/podgroups
# Queue CRUD (user-scoped)
GET /kapis/scheduling.volcano.sh/v1beta1/users/{user}/queues
POST /kapis/scheduling.volcano.sh/v1beta1/users/{user}/queues
DELETE /kapis/scheduling.volcano.sh/v1beta1/users/{user}/queues/{name}
Option 2: Kubernetes Native API (/apis)
Uses jobs resource name:
# Job CRUD (namespace-scoped)
GET /apis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/jobs
POST /apis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/jobs
GET /apis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/jobs/{name}
DELETE /apis/batch.volcano.sh/v1alpha1/namespaces/{namespace}/jobs/{name}
# Job CRUD (cluster-scoped)
GET /apis/batch.volcano.sh/v1alpha1/jobs
DELETE /apis/batch.volcano.sh/v1alpha1/jobs
# Queue CRUD (cluster-scoped)
GET /apis/scheduling.volcano.sh/v1beta1/queues
POST /apis/scheduling.volcano.sh/v1beta1/queues
DELETE /apis/scheduling.volcano.sh/v1beta1/queues/{name}
Note: Both paths work. Use
/kapisfor KubeSphere extension API (multi-cluster support), use/apisfor standard Kubernetes API.
Note: Queue API has two views:
/kapis/.../users/{user}/queuesreturns queues visible to that user (user-scoped)/apis/.../queuesreturns all queues in the cluster (cluster-scoped)
# Query Parameters
page - Page number (default: 1)
limit - Items per page
ascending - Sort direction (default: false)
sortBy - Sort field (e.g., createTime)
Discovery Commands
This section provides two approaches for querying Volcano status:
- KubeSphere API (curl) - for extension management and multi-cluster queries
- kubectl - for direct Kubernetes resource operations
Option 1: Using KubeSphere API (curl)
Environment Variables:
export KS_HOST="http://<kubesphere-host>:30880" # KubeSphere console URL (required)
export KS_USERNAME="admin" # Username (default)
export KS_PASSWOR
FAQ
Does the skill install Volcano?
No. It assumes the Volcano extension is already installed.
Which job types have templates?
The skill includes templates for PyTorch, TensorFlow, MPI and batch jobs.
Can it manage queues too?
Yes. It covers creating and managing queues for job scheduling.
Details
Original description by the author
KubeSphere Volcano job management Skill. Use when user asks to create, list, update, delete Jobs (Volcano Jobs), manage Queues, create PyTorch/TensorFlow/MPI training jobs, or troubleshoot Volcano scheduling issues in KubeSphere. Includes built-in YAML templates, scheduling policy recommendations, and best practices for resource configuration. Handles both KubeSphere API and kubectl operations.
repo: kubesphere/kubesphere
Popularity
- GitHub stars
- 17k
- Ranking position
- #10781
- License
- —
- Updated
- 7/14/2026
Comments
- …
More skills from this repository
frontend-forge-fe-operations
17kHelps your agent manage FrontendExtension resources in KubeSphere, including building, publishing and debugging them.
frontend-forge-fi-operations
17kHelps your agent create, update, enable, disable and inspect FrontendIntegration resources and the frontend-forge extension in KubeSphere.
frontend-integration-yaml
17kHelps your agent create ready-to-submit FrontendIntegration YAML for a single menu with one or more pages.
kubeeye
17kHelps your agent install KubeEye and set up cluster inspection rules and plans, then read the inspection reports.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.