cilium-debug
Skill0 starsChanged 41 days agoMITView on GitHub
Use when debugging Cilium CNI networking issues such as dropped traffic, CiliumNetworkPolicy problems, or connectivity failures in a Cilium-based cluster. Mention "cilium", "hubble", "traffic dropped by policy", "cilium connectivity" as triggers.
In this repository45 other files it gives its agents.
- admission-policy-reviewSkill
- alert-rule-reviewSkill
- architecture-reviewSkill
- argocd-applicationsetSkill
- argocd-debugSkill
- argocdSkill
- cert-manager-debugSkill
- cicd-reviewSkill
- ciliumSkill
- cluster-backupSkill
- dast-reviewSkill
- dockerfile-reviewSkill
- english-technical-messageSkill
- git-messageSkill
- gitops-reviewSkill
- go-bugfixSkill
- go-code-reviewSkill
- go-testing-reviewSkill
- grafana-dashboardsSkill
- helm-reviewSkill
- homelab-change-planSkill
- incident-analysisSkill
- ingressSkill
- interview-system-designSkill
- istio-debugSkill
- istioSkill
- kubernetes-autoscalingSkill
- kubernetes-debugSkill
- kubernetes-securitySkill
- kubernetes-yaml-reviewSkill
- migration-planSkill
- observability-reviewSkill
- observability-stackSkill
- production-readinessSkill
- pr-reviewSkill
- root-cause-analysisSkill
- runbook-writerSkill
- runtime-security-reviewSkill
- secrets-managementSkill
- storage-debugSkill
- supply-chain-securitySkill
- terraform-reviewSkill
- upgrade-readinessSkill
- vaultSkill
- vulnerability-triageSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use cilium status, endpoint status, and read-only Hubble flow inspection.
- Distinctive: line 22
Do not edit policies before the dropped flow and identity are known.
- Distinctive: line 26
Follow the Workflow, Safety rules, and Quality checklist below.
- Distinctive: line 36
Use when pod-to-pod, pod-to-service, or egress traffic misbehaves in a Cilium cluster — drops, timeouts, DNS failures, policy that blocks …
- Very specific: line 63
check identity labels the policy matches against (cilium identity get <id>) — a selector matching a label the pod doesn't actually carry …
- Very specific: line 90
Read-only first, always: cilium status/endpoint list/service list/identity get, hubble observe, kubectl get/describe.
- Distinctive: line 92
Do not apply, edit, or delete network policies on a live cluster — propose the manifest and the verification command.
- Very specific: line 95
Do not restart cilium agents or run cilium cleanup-class commands without explicit user confirmation — agent restarts briefly disrupt …
- Very specific: line 97
Never suggest "delete the policy" as a diagnostic shortcut in production — narrow the policy hypothesis with hubble observe evidence …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cilium Debug
TL;DR checklist
- Check agent and endpoint health on the affected node.
- Use Hubble verdicts and drop reasons to locate the denied path.
- Map the observed drop to the responsible policy or datapath layer.
Key read-only checks
- Use
cilium status, endpoint status, and read-only Hubble flow inspection.
Common pitfalls
- Do not edit policies before the dropped flow and identity are known.
Agent procedure
Follow the Workflow, Safety rules, and Quality checklist below.
Quick references
- references/playbooks.md
Last verified: unverified
When to use
Use when pod-to-pod, pod-to-service, or egress traffic misbehaves in a Cilium cluster — drops, timeouts, DNS failures, policy that blocks more or less than intended — and the cause needs to be found. Also covers reviewing CiliumNetworkPolicy before it's applied.
Goal
Pinpoint where and why Cilium is dropping or misrouting traffic, backed by Hubble/agent evidence, and propose a fix — without mutating live policies or cluster state.
Workflow
- Baseline health first —
cilium status(via CLI orkubectl execinto a cilium agent pod), controller failures, unreachable nodes, andkubectl get pods -n kube-system -l k8s-app=ciliumfor crashlooping agents. Half of "network is broken" is one unhealthy agent. - Endpoint state —
cilium endpoint liston the node hosting the affected pod: is the endpointready? Which identity did it get? An endpoint stuck inwaiting-for-identityorregeneratingexplains total connectivity loss. - Watch the traffic —
hubble observe --from-pod <ns>/<pod> --to-pod <ns>/<pod>(or--verdict DROPPED): the verdict and drop reason (Policy denied,DNS,CT: connection tracking) usually names the culprit directly. This is the single highest-value command in a Cilium investigation. - Policy evaluation — if verdict is
Policy denied:- list
CiliumNetworkPolicy/CiliumClusterwideNetworkPolicyand plainNetworkPolicyselecting either endpoint — they combine, and a forgotten default-deny in one of the three is the classic cause - remember direction: traffic needs egress allowed on the source AND ingress allowed on the destination
- check identity labels the policy matches against (
cilium identity get <id>) — a selector matching a label the pod doesn't actually carry silently matches nothing
- list
- DNS-aware policy — for
toFQDNsrules: DNS itself must be allowed (port 53 to kube-dns) before the FQDN rule can ever learn IPs;hubble observe --type l7 --protocol dnsshows whether DNS queries are seen and answered. - Service path — for ClusterIP issues with kube-proxy replacement enabled:
cilium service liston the node — does the service have backends? Missing backends with healthy pods points at endpoint propagation, not policy. - Cross-node path — for node-to-node failures: encapsulation/native routing mismatch, node
firewall blocking VXLAN/Geneve ports or WireGuard (51871/UDP) if encryption is enabled;
cilium-health statusshows the node-to-node reachability matrix. - Correlate and conclude — tie the drop reason to the specific policy/agent/route cause
before proposing a fix; propose the minimal policy change (or agent remediation) and how to
verify it with
hubble observeafter applying.
References
references/playbooks.md — drop-reason → cause → fix tables (policy denial walkthrough,
kube-proxy-replacement service issues, node-to-node/encryption, DNS flows). Route there as soon
as hubble observe names the drop reason.
For designing/deploying/configuring Cilium features (install, kube-proxy replacement, policy
authoring, Hubble, encryption, Cluster Mesh, Gateway/Egress/BGP) rather than troubleshooting a
live drop, use the cilium skill.
Safety rules
- Read-only first, always:
cilium status/endpoint list/service list/identity get,hubble observe,kubectl get/describe. None of these mutate state. - Do not apply, edit, or delete network policies on a live cluster — propose the manifest and the verification command; the user applies it. A wrong policy change can sever production traffic instantly.
- Do not restart cilium agents or run
cilium cleanup-class commands without explicit user confirmation — agent restarts briefly disrupt traffic on the node. - Never suggest "delete the policy" as a diagnostic shortcut in production — narrow the policy
hypothesis with
hubble observeevidence instead.
Output format
## Observations
<agent/endpoint health, from which command>
## Evidence
<hubble verdicts / drop reasons / endpoint state, quoted>
## Root cause
## Fix
<policy diff or remediation, marked as requiring user confirmation to apply>
## Verification
<the hubble observe / connectivity check that proves it's fixed>Quality checklist
hubble observe(or equivalent drop evidence) backs the conclusion, not policy reading alone- Both CiliumNetworkPolicy AND plain NetworkPolicy were checked, both directions
- DNS allowance was checked before blaming toFQDNs rules
- Only read-only commands were run without explicit confirmation
- The fix includes a post-apply verification command
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

