scan_cluster
Scans a connected OpenShift or Kubernetes cluster to list available resources, including CPU, memory, GPUs, storage classes, operators, and CRDs. Provides a full inventory for capacity planning and capability checks.
Instructions
Scan the connected OpenShift/Kubernetes cluster for available resources.
This performs a FULL cluster scan, returning all available resources.
USE THIS TOOL WHEN:
- User asks "what resources are available in my cluster?"
- User asks "what does my cluster have?"
- User asks "scan my cluster"
- User wants to know their cluster's capabilities WITHOUT comparing to any app
For Example, questions like:
- "How many available GPUs are on the cluster?"
- "How many available CPU cores are on the cluster?"
And also question that might regard other cluster resources.
DO NOT USE when user asks about installing/deploying an app (use check_feasibility instead)
DO NOT USE when user asks about app requirements (use fetch_repo_content instead)
Returns comprehensive cluster information including:
- Node resources (CPU, memory, allocatable, available, usage)
- GPU availability, models, and memory (VRAM)
- Storage classes
- Installed operators (OpenShift only)
- Custom Resource Definitions (CRDs)
Fails with clear error if cluster is not accessible.
Returns:
Dictionary containing:
- success: Boolean indicating if the operation was successful
- cluster_info: Node resources, GPU info, storage classes, operators, CRDs
- error: Error message if cluster not accessible
Example:
>>> scan_cluster()
{
"success": True,
"cluster_info": {
"nodes": {...},
"gpu_resources": {
"total_gpus": 4,
"gpu_models": ["NVIDIA-A10G"],
"gpu_memory_mb": 23028
},
"storage_classes": [...],
"operators": [...],
"crds": [...]
}
}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||