kubesphere-volcano
Skill này làm gì
Skill này giúp agent AI chạy các job batch và huấn luyện với bộ lập lịch Volcano trong KubeSphere. Skill dành cho các đội nhóm chạy huấn luyện học máy hoặc job batch lớn trên một cụm.
Khi nào nên dùng
- ✓Khi bạn muốn khởi động một job huấn luyện PyTorch, TensorFlow hoặc MPI trên cụm.
- ✓Khi bạn cần tạo hoặc thay đổi một hàng đợi kiểm soát cách các job được lập lịch.
- ✓Khi một job Volcano bị kẹt ở trạng thái pending và bạn muốn tìm vấn đề lập lịch.
Liên kết skill
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-volcano/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một job huấn luyện PyTorch trên cụm của chúng tôi với hai worker và cho tôi biết vì sao nó vẫn đang pending không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết manifest job từ một mẫu có sẵn và áp dụng qua kubectl hoặc API KubeSphere. Sau đó nó kiểm tra job, hàng đợi và các pod để xem vì sao một job đang chờ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có cài đặt Volcano không?
Không. Skill giả định mở rộng Volcano đã được cài đặt sẵn.
Những loại job nào có mẫu?
Skill có mẫu cho PyTorch, TensorFlow, MPI và job batch.
Nó có quản lý được hàng đợi không?
Có. Nó bao gồm việc tạo và quản lý các hàng đợi để lập lịch job.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10781
- Giấy phép
- —
- Cập nhật
- 14/7/2026
Bình luận
- …
Thêm skill từ kho mã này
frontend-forge-fe-operations
17kGiúp agent của bạn quản lý tài nguyên FrontendExtension trong KubeSphere, gồm xây dựng, xuất bản và gỡ lỗi chúng.
frontend-forge-fi-operations
17kGiúp agent của bạn tạo, cập nhật, bật, tắt và kiểm tra tài nguyên FrontendIntegration cùng mở rộng frontend-forge trong KubeSphere.
frontend-integration-yaml
17kGiúp agent của bạn tạo file YAML FrontendIntegration sẵn sàng để gửi đi cho một menu với một hoặc nhiều trang.
kubeeye
17kGiúp agent của bạn cài đặt KubeEye và thiết lập quy tắc cùng kế hoạch kiểm tra cụm, sau đó đọc các báo cáo kiểm tra.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.