Install
openclaw skills install @rohitg00/k8s-incidentRespond to Kubernetes incidents with runbooks and diagnostics. Use for outages, pod failures, node issues, network problems, and emergency response.
openclaw skills install @rohitg00/k8s-incidentRunbooks and diagnostic workflows for common Kubernetes incidents.
Requires the
cilium,diagnostics,istio,securitytoolsets: start kubectl-mcp-server with--toolsets default,cilium,diagnostics,istio,security(orMCP_TOOLSETS=default,cilium,diagnostics,istio,security).
Use this skill when:
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Check control plane first | CRITICAL | kubectl_get(resource_type="pods", namespace="kube-system") |
| 2 | Assess node health | CRITICAL | kubectl_get |
| 3 | Gather events before changes | HIGH | kubectl_get |
| 4 | Document timeline | HIGH | Manual notes |
| 5 | Rollback if safe | MEDIUM | kubectl_rollout |
| Incident | First Tool | Next Steps |
|---|---|---|
| Pod failure | kubectl_logs(pod_name, previous=True) | kubectl_describe, kubectl_get |
| Node down | kubectl_describe | Check kubelet logs |
| Service unreachable | kubectl_get | analyze_network_policies |
| Control plane | kubectl_get(resource_type="pods", namespace="kube-system") | Check API server logs |
kubectl_get(resource_type="nodes")
kubectl_get(resource_type="pods", namespace="kube-system")
kubectl_get(resource_type="events", namespace)
| Indicator | Severity | Action |
|---|---|---|
| Multiple nodes NotReady | Critical | Escalate immediately |
| kube-system pods failing | Critical | Control plane issue |
| Single pod CrashLoop | Medium | Debug pod |
| High latency | Medium | Check resources |
kubectl_logs(name, namespace, previous=True)
kubectl_describe(name, namespace)
kubectl_get(resource_type="events", namespace, field_selector="involvedObject.name=<pod>")
kubectl_top(name, namespace)
Common Causes:
kubectl_describe(name, namespace)
kubectl_get(resource_type="secrets", namespace)
kubectl_describe(name, namespace)
kubectl_get(resource_type="nodes")
kubectl_get(resource_type="events", namespace)
kubectl_describe(name)
kubectl_get(resource_type="events", namespace="", field_selector="involvedObject.name=<node>")
node_logs(name, "kubelet")
kubectl_describe(name)
kubectl_get(resource_type="pods", field_selector="spec.nodeName=<node>")
kubectl_get(resource_type="services", namespace)
kubectl_get(resource_type="endpoints", namespace)
kubectl_get(resource_type="pods", namespace, label_selector="<service-selector>")
analyze_network_policies(namespace)
kubectl_get(resource_type="pods", namespace="kube-system", label_selector="k8s-app=kube-dns")
kubectl_logs("coredns-xxx", "kube-system")
cilium_get_status()
cilium_list_endpoints(namespace)
get_hubble_flows(namespace)
istio_analyze(namespace)
istio_proxy_status()
kubectl_describe(name, namespace)
kubectl_get(resource_type="storageclasses")
kubectl_get(resource_type="events", namespace)
kubectl_describe(name, namespace)
kubectl_get(resource_type="pvc", namespace)
kubectl_get(resource_type="events", namespace)
kubectl_get(resource_type="pods", namespace="kube-system", label_selector="component=kube-apiserver")
kubectl_get(resource_type="events", namespace="kube-system")
kubectl_get(resource_type="pods", namespace="kube-system", label_selector="component=etcd")
kubectl_logs("etcd-xxx", "kube-system")
delete_resource(resource_type="pod", name=name, namespace=namespace)
kubectl_rollout(action="undo", resource_type="deployment", name=name, namespace=namespace)
helm_rollback(name, namespace, revision=1)
For comprehensive incident diagnostics, see scripts/collect-diagnostics.py.
Check all clusters:
for context in ["prod-1", "prod-2", "staging"]:
kubectl_get(resource_type="nodes", context=context)
kubectl_get(resource_type="pods", namespace="kube-system", context=context)
kubectl_get(resource_type="events", namespace="kube-system", context=context)