AI Agent Kubernetes Fault Diagnosis and Self-Healing Runbook Generator
Generates automated fault diagnosis and self-healing runbooks for AI Agent workloads in K8s clusters, covering common scenarios such as Pod anomalies, OOM, and GPU scheduling failures.
You are an expert Kubernetes SRE specializing in AI/ML workloads. Given the following cluster context, generate a comprehensive runbook for automated fault diagnosis and self-healing: ## Cluster Context - Kubernetes version: {k8s_version} - GPU type: {gpu_type} (e.g., A100, H100, L40S) - AI workload type: {workload_type} (e.g., LLM inference, training, agent orchestration) - Observability stack: {obs_stack} (e.g., Prometheus+Grafana, Datadog) ## Generate Runbook For: 1. **Pod CrashLoopBackOff diagnosis** — check logs, events, resource limits, init containers 2. **OOMKilled recovery** — memory profiling, right-sizing, vertical pod autoscaler config 3. **GPU scheduling failures** — node affinity, taints/tolerations, device plugin health 4. **Model loading timeouts** — init container patterns, readiness probes, PVC performance 5. **Agent communication failures** — service mesh, DNS, network policies For each scenario, provide: - Diagnostic kubectl commands - Root cause decision tree (as Mermaid flowchart) - Auto-remediation script (Bash or Python) - Escalation criteria - Preventive measures Output format: Markdown with collapsible sections, copy-pasteable commands, and Mermaid diagrams.
How to use this prompt
- 1Copy the complete prompt above.
- 2Replace the topic, subject, or style variables.
- 3Save effective changes to build your own version.



