cilium-ebpf-networking
Skill2 starsChanged 28 days agoApache-2.0View on GitHub
Cloud-native eBPF networking, Kubernetes CNI replacement, transparent mutual TLS (mTLS), L7 CiliumNetworkPolicies, and Hubble network observability. Use when securing cluster traffic, eliminating kube-proxy iptables bottlenecks, or debugging service mesh latency.
In this repository108 other files it gives its agents.
- AGENTS.mdAGENTS.md
- everything-gemini-maintainerSkill
- adversarial-fuzz-generatorSkill
- agent-evalsSkill
- ai-first-engineeringSkill
- alloydb-omni-vectorSkill
- apache-kafka-streamsSkill
- api-craftsmanSkill
- architecture-designerSkill
- argon-3d-game-engineSkill
- argon-3d-scene-architectSkill
- argon-procedural-asset-generatorSkill
- argon-visual-critique-loopSkill
- argo-workflowsSkill
- autonomous-incident-healerSkill
- axum-web-serviceSkill
- bigquery-vector-searchSkill
- browser-qa-testerSkill
- chromadb-vector-storeSkill
- clickhouse-analyticsSkill
- cloud-deploy-canarySkill
- cloudflare-r2-object-storageSkill
- cloudflare-workersSkill
- cloud-run-agentsSkill
- context-cachingSkill
- context-distillation-compressorSkill
- context-warmerSkill
- continuous-learningSkill
- cost-oracle-finopsSkill
- cross-repo-swarm-syncSkill
- cve-remediation-orchestratorSkill
- database-architectSkill
- dataproc-spark-analyticsSkill
- dbt-transformationSkill
- debezium-cdcSkill
- devops-pipelineSkill
- distributed-rate-limitingSkill
- docker-compose-orchestratorSkill
- duckdb-local-olapSkill
- dynamic-thinking-allocationSkill
- ebpf-microvm-sandboxSkill
- ebpf-sandbox-enforcerSkill
- elephant-goldfish-modelSkill
- envoy-ai-gatewaySkill
- ephemeral-swarm-orchestratorSkill
- fastapi-productionSkill
- fullstack-nextjsSkill
- game-audio-synthesizerSkill
- game-studioSkill
- gemini-function-callingSkill
- gemini-groundingSkill
- gemini-live-audio-transcriberSkill
- gemini-live-multimodalSkill
- gemini-live-screen-visionSkill
- gemini-multimodalSkill
- genetic-prompt-cross-pollinatorSkill
- git-craftsmanSkill
- github-opsSkill
- google-axSkill
- google-flow-orchestratorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 141
If cilium_lb4_services_v2 exceeds 80%, increase --set bpf.lbMapMax=65536.
- Very specific: line 143
Run cilium status --verbose and confirm Encryption: WireGuard [Node: OK, Pod: OK].
≈ “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 eBPF Networking & Security Architecture
A production runbook for deploying, configuring, and troubleshooting Cilium eBPF, high-performance Kubernetes networking, and deep packet observability with Hubble.
🎯 Architectural Advantages of eBPF
- Bypasses iptables / IPVS Overhead: Programs run directly in the Linux kernel network stack (
tc/xdp), providing O(1) connection routing regardless of service count. - Kernel-Level Identity: Enforces security policies based on cryptographically verified Kubernetes metadata and SPIFFE identities rather than volatile IP addresses.
- Transparent Encryption: Mutual TLS (mTLS) or WireGuard encryption negotiated dynamically at the kernel layer with zero application sidecars.
- Hubble Observability: Zero-overhead flow logging, DNS resolution tracking, and L7 HTTP/gRPC metrics without code instrumentation.
🚀 Helm Deployment (kube-proxy Replacement)
helm repo add cilium https://helm.cilium.io/
helm repo update
helm install cilium cilium/cilium --version 1.16.0 \
--namespace kube-system \
--set kubeProxyReplacement=true \
--set k8sServiceHost=10.0.0.1 \
--set k8sServicePort=6443 \
--set routingMode=native \
--set autoDirectNodeRoutes=true \
--set bpf.masquerade=true \
--set encryption.enabled=true \
--set encryption.type=wireguard \
--set hubble.enabled=true \
--set hubble.relay.enabled=true \
--set hubble.ui.enabled=true \
--set hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,httpV2:exemplars=true;labelsContext=source_ip\,source_namespace\,source_workload\,destination_ip\,destination_namespace\,destination_workload\,traffic_direction}"🛡️ L7 CiliumNetworkPolicy Specification
Enforce strict Zero-Trust boundaries allowing only authorized HTTP/gRPC methods between microservices:
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
name: order-service-l7-policy
namespace: production
spec:
endpointSelector:
matchLabels:
app: order-service
ingress:
- fromEndpoints:
- matchLabels:
app: api-gateway
toPorts:
- ports:
- port: "8080"
protocol: TCP
rules:
http:
- method: "POST"
path: "/v1/orders"
- method: "GET"
path: "/v1/orders/.*"
egress:
- toEndpoints:
- matchLabels:
app: payment-service
toPorts:
- ports:
- port: "8443"
protocol: TCP
rules:
http:
- method: "POST"
path: "/v1/charges"
- toFQDNs:
- matchName: "api.stripe.com"
toPorts:
- ports:
- port: "443"
protocol: TCP🔍 Hubble CLI Diagnostic Workflows
The Hubble CLI provides real-time kernel packet inspection:
1. Tail Dropped Packets in Namespace
hubble observe --namespace production --verdict DROP -f2. Trace HTTP Latency & 5xx Status Errors
hubble observe \
--namespace production \
--protocol http \
--http-status 5.. \
--output jsonpb | jq '{source: .flow.source.pod_name, dest: .flow.destination.pod_name, status: .flow.l7.http.code}'3. Inspect DNS Queries and Lookup Failures
hubble observe --namespace production --protocol dns📈 Prometheus Service Metrics Integration
Cilium exposes Prometheus metrics on port 9962 (agent) and 9965 (operator):
cilium_forward_count_total # Total packets forwarded through eBPF datapath
cilium_drop_count_total # Total packets dropped by policy or checksum failure
cilium_bpf_map_pressure # Map utilization (target: < 0.70 to avoid overflow)
hubble_flows_processed_total # Flow event processing rate⚠️ Troubleshooting & Production Checklist
- BPF Map Pressure Alert:
- Inspect active map sizing:
cilium-dbg bpf map list. - If
cilium_lb4_services_v2exceeds 80%, increase--set bpf.lbMapMax=65536.
- Inspect active map sizing:
- WireGuard Encryption Verification:
- Run
cilium status --verboseand confirmEncryption: WireGuard [Node: OK, Pod: OK].
- Run
- Kernel Version Compatibility:
- Requires Linux Kernel >= 5.10 for full kube-proxy replacement, and >= 5.15 for transparent mTLS encryption.
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.

