AGENT SKILL
ocp-analysis
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 3
02 资源文件 2
- 脚本analyze_ocp.py7.5 KB
- 参考文档tuned-c1.yaml444 B
03 SKILL.md 正文
/ocp-analysis
Analyze a running OCP cluster: versions, node details, host tuning status, and running VM count.
Important: This skill checks the actual cluster state. Always run the skill first to confirm current status before making cluster changes.
Steps
-
Run the analysis script (auto-collects data from the cluster):
python3 skills/ocp-analysis/analyze_ocp.py --nodes nodes.jsonOr collect nodes.json first:
oc get nodes -o json > nodes.json python3 skills/ocp-analysis/analyze_ocp.py --nodes nodes.json -
Report the output exactly as returned — do not interpret or add recommendations beyond what the script outputs
Output Sections
- Cluster summary: OCP version, CNV version, node count, VM count
- Node table: name, role, CPU, memory, allocatable CPU/memory, kernel, OS, running VMs
- SEVERITY: PASS or WARNING
- FINDINGS: issues detected by the script
- RECOMMENDATION: generated by the script based on actual cluster state
- Host Tuning: C1 tuned status — only flag if script reports it as NOT applied
Notes
- C1 tuned (
tuned-c1.yaml) is a best practice for latency-sensitive workloads — can be recommended proactively - Run this skill first to confirm whether C1 is already applied before recommending it
tuned-c1.yamlis included in this skill directory — apply with:oc apply -f skills/ocp-analysis/tuned-c1.yaml