[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FFY7B4HTACPK6WNBR2YNER":3,"skill-same:01M6FFY7B4HTACPK6WNBR2YNER":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FFY7B4HTACPK6WNBR2YNER","k8s-troubleshoot",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Frohitg00\u002Fkubectl-mcp-server\u002Fk8s-troubleshoot\u002FSKILL.md",[],[18,19,20],"troubleshoot","k8s","k8s troubleshoot","2026-11-10 10:12:30",false,"# Kubernetes Troubleshooting\n\nExpert debugging and diagnostics for Kubernetes clusters using kubectl-mcp-server tools.\n\n## When to Apply\n\nUse this skill when:\n- User mentions: \"debug\", \"troubleshoot\", \"diagnose\", \"failing\", \"crash\", \"not starting\", \"broken\"\n- Pod states: Pending, CrashLoopBackOff, ImagePullBackOff, OOMKilled, Error, Unknown\n- Node issues: NotReady, MemoryPressure, DiskPressure, NetworkUnavailable, PIDPressure\n- Keywords: \"logs\", \"events\", \"describe\", \"why isn't working\", \"stuck\", \"not responding\"\n\n## Priority Rules\n\n| Priority | Rule | Impact | Tools |\n|----------|------|--------|-------|\n| 1 | Check pod status first | CRITICAL | `get_pods`, `describe_pod` |\n| 2 | View recent events | CRITICAL | `get_events` |\n| 3 | Inspect logs (including previous) | HIGH | `get_pod_logs` |\n| 4 | Check resource metrics | HIGH | `get_pod_metrics` |\n| 5 | Verify endpoints | MEDIUM | `get_endpoints` |\n| 6 | Review network policies | MEDIUM | `get_network_policies` |\n| 7 | Examine node status | LOW | `get_nodes`, `describe_node` |\n\n## Quick Reference\n\n| Symptom | First Tool | Next Steps |\n|---------|------------|------------|\n| Pod Pending | `describe_pod` | Check events, node capacity, resource requests |\n| CrashLoopBackOff | `get_pod_logs(previous=True)` | Check exit code, resources, liveness probes |\n| ImagePullBackOff | `describe_pod` | Verify image name, registry auth, network |\n| OOMKilled | `get_pod_metrics` | Increase memory limits, check for memory leaks |\n| ContainerCreating | `describe_pod` | Check PVC binding, secrets, configmaps |\n| Terminating (stuck) | `describe_pod` | Check finalizers, PDBs, preStop hooks |\n\n## Diagnostic Workflows\n\n### Pod Not Starting\n\n```\n1. get_pods(namespace, label_selector) - Get pod status\n2. describe_pod(name, namespace) - See events and conditions\n3. get_events(namespace, field_selector=\"involvedObject.name=\u003Cpod>\") - Check events\n4. get_pod_logs(name, namespace, previous=True) - For crash loops\n```\n\n### Common Pod States\n\n| State | Likely Cause | Tools to Use |\n|-------|-------------|--------------|\n| Pending | Scheduling issues | `describe_pod`, `get_nodes`, `get_events` |\n| ImagePullBackOff | Registry\u002Fauth | `describe_pod`, check image name |\n| CrashLoopBackOff | App crash | `get_pod_logs(previous=True)` |\n| OOMKilled | Memory limit | `get_pod_metrics`, adjust limits |\n| ContainerCreating | Volume\u002Fnetwork | `describe_pod`, `get_pvc` |\n\n### Node Issues\n\n```\n1. get_nodes() - List nodes and status\n2. describe_node(name) - See conditions and capacity\n3. Check: Ready, MemoryPressure, DiskPressure, PIDPressure\n4. node_logs_tool(name, \"kubelet\") - Kubelet logs\n```\n\n## Deep Debugging Workflows\n\n### CrashLoopBackOff Investigation\n\n```\n1. get_pod_logs(name, namespace, previous=True) - See why it crashed\n2. describe_pod(name, namespace) - Check resource limits, probes\n3. get_pod_metrics(name, namespace) - Memory\u002FCPU at crash time\n4. If OOM: compare requests\u002Flimits to actual usage\n5. If app error: check logs for stack trace\n```\n\n### Networking Issues\n\n```\n1. get_services(namespace) - Verify service exists\n2. get_endpoints(namespace) - Check endpoint backends\n3. If empty endpoints: pods don't match selector\n4. get_network_policies(namespace) - Check traffic rules\n5. For Cilium: cilium_endpoints_list_tool(), hubble_flows_query_tool()\n```\n\n### Storage Problems\n\n```\n1. get_pvc(namespace) - Check PVC status\n2. describe_pvc(name, namespace) - See binding issues\n3. get_storage_classes() - Verify provisioner exists\n4. If Pending: check storage class, access modes\n```\n\n### DNS Resolution\n\n```\n1. kubectl_exec(pod, namespace, \"nslookup kubernetes.default\") - Test DNS\n2. If fails: check coredns pods in kube-system\n3. get_pods(namespace=\"kube-system\", label_selector=\"k8s-app=kube-dns\")\n4. get_pod_logs(name=\"coredns-*\", namespace=\"kube-system\")\n```\n\n## Multi-Cluster Debugging\n\nAll tools support `context` parameter for targeting different clusters:\n\n```python\nget_pods(namespace=\"kube-system\", context=\"production-cluster\")\nget_events(namespace=\"default\", context=\"staging-cluster\")\ndescribe_pod(name=\"myapp-xyz\", namespace=\"prod\", context=\"prod-east\")\n```\n\n## Diagnostic Scripts\n\nFor comprehensive diagnostics, run the bundled scripts:\n- See [scripts\u002Fdiagnose-pod.py](scripts\u002Fdiagnose-pod.py) for automated pod analysis\n- See [scripts\u002Fhealth-check.sh](scripts\u002Fhealth-check.sh) for cluster health checks\n\n## Decision Tree\n\nSee [references\u002FDECISION-TREE.md](references\u002FDECISION-TREE.md) for visual troubleshooting flowcharts.\n\n## Common Errors Reference\n\nSee [references\u002FCOMMON-ERRORS.md](references\u002FCOMMON-ERRORS.md) for error message explanations and fixes.\n\n## Related Tools\n\n### Core Diagnostics\n- `get_pods`, `describe_pod`, `get_pod_logs`, `get_pod_metrics`\n- `get_events`, `get_nodes`, `describe_node`\n- `get_resource_usage`, `compare_namespaces`\n\n### Advanced (Ecosystem)\n- Cilium: `cilium_endpoints_list_tool`, `hubble_flows_query_tool`\n- Istio: `istio_proxy_status_tool`, `istio_analyze_tool`\n\n## Related Skills\n\n- [k8s-diagnostics](..\u002Fk8s-diagnostics\u002FSKILL.md) - Metrics and health checks\n- [k8s-incident](..\u002Fk8s-incident\u002FSKILL.md) - Emergency runbooks\n- [k8s-networking](..\u002Fk8s-networking\u002FSKILL.md) - Network troubleshooting\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Frohitg00\u002Fkubectl-mcp-server\u002Fk8s-troubleshoot",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill k8s-troubleshoot",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill k8s-troubleshoot",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill k8s-troubleshoot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Frohitg00\u002Fkubectl-mcp-server\u002Fk8s-troubleshoot\u002FSKILL.md",true,[],[49,63,73,82,88,95],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":59,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[54],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[60,61,62],"model","model hierarchy","model hierarchy skill",{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":69,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[68],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[70,71,72],"MCP","zoom","zoom mcp",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[79,80,81,71],"sdk","zoom apps sdk","apps",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":94,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[93],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[90],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[97]]