惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
J
Java Code Geeks
博客园_首页
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
P
Palo Alto Networks Blog
V
Vulnerabilities – Threatpost
雷峰网
雷峰网
O
OpenAI News
SecWiki News
SecWiki News
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
N
News | PayPal Newsroom
Project Zero
Project Zero
Forbes - Security
Forbes - Security
IT之家
IT之家
A
Arctic Wolf
WordPress大学
WordPress大学
Jina AI
Jina AI
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
博客园 - 聂微东
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
Cloudbric
Cloudbric
G
GRAHAM CLULEY
博客园 - 叶小钗
H
Hacker News: Front Page
腾讯CDC
量子位
Help Net Security
Help Net Security
人人都是产品经理
人人都是产品经理
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
L
Lohrmann on Cybersecurity
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
C
CERT Recently Published Vulnerability Notes

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
eBPF Gives Kubernetes Full Network Visibility Without the Sidecar CPU Tax
Muskan · 2026-05-13 · via DEV Community

Service mesh adoption in Kubernetes hit a wall in 2025. Not because teams stopped wanting visibility, but because the bill arrived. Every pod in an Istio cluster runs two containers: your application and an Envoy proxy. That proxy consumes 0.5 vCPU and 50MB of memory at idle, before a single request arrives. At 100 pods, you are paying for 50 idle vCPUs that do no application work. At 500 pods, you are running 4-5 extra EC2 nodes purely to keep proxies alive.

eBPF solves this by moving observability out of the pod and into the kernel. One program runs per node and observes all pod traffic from a single hook point. The pod count becomes irrelevant. That architectural shift is what makes tools like Cilium, Hubble, and Pixie compelling in 2026.

The Sidecar Overhead Is Not an Edge Case: It Is the Default

Envoy proxy overhead is not a bug or a misconfiguration. It is the intended architecture. Every pod in an Istio mesh gets a sidecar injected by a mutating admission webhook before scheduling. That sidecar intercepts all inbound and outbound traffic for the pod, which is how Istio gets its mTLS, retries, and observability.

The overhead has two components. The first is baseline idle consumption: 0.5 vCPU and 50MB per sidecar. This does not disappear when your pods are idle. The second is load-proportional overhead. Under production traffic, Envoy processing the request path consumes an additional 15-30% of the pod's allocated CPU. A service that normally uses 500m CPU will peak at 575-650m with sidecar overhead factored in.

Sidecar Architecture Overhead

The startup cost is also real. Sidecar injection adds 1-2 seconds to pod startup time because the admission webhook must run, the sidecar image must be pulled (or found in cache), and the container must initialize before traffic is accepted. In clusters with aggressive HPA scaling events, this latency compounds.

The crash coupling is the least-discussed cost. If the Envoy sidecar OOMKills because your pod's memory limit was sized for just the application, your application loses network connectivity entirely, even if it is running fine. The pod gets restarted. That is a service interruption caused by your observability layer.

Cluster Size Envoy Baseline vCPU AWS m5.4xlarge Equivalent Monthly Cost (on-demand)
50 pods 25 vCPU 1.6 nodes ~830 USD
100 pods 50 vCPU 3.1 nodes ~1,660 USD
500 pods 250 vCPU 15.6 nodes ~8,300 USD
1,000 pods 500 vCPU 31.3 nodes ~16,600 USD

These numbers use the 0.5 vCPU idle baseline per Envoy sidecar and on-demand m5.4xlarge pricing at 0.768 USD/hour. Actual load-time overhead pushes real cost 30-50% higher.

eBPF Observes From the Kernel: One Hook Point Per Node, Not Per Pod

eBPF (Extended Berkeley Packet Filter) is a kernel subsystem that lets you attach verified programs to hook points inside the Linux kernel. Those hook points include network ingress/egress (XDP and Traffic Control), system calls (kprobes and tracepoints), and user-space function calls (uprobes). The key property: the program runs once per node, not once per pod.

This is what the Kernel Observability Model describes. Instead of placing an observer inside each workload (the sidecar approach), you attach an observer at the substrate that all workloads run on. Traffic between pods never leaves kernel space before being inspected. No packet copy, no userspace round-trip, no per-pod process startup.

The Linux kernel verifier checks every eBPF program before it loads. It proves the program terminates, cannot access out-of-bounds memory, and cannot crash the kernel. This is why eBPF is safe for production use: the kernel itself is the safety boundary, not sandboxing in userspace.

eBPF Kernel Hook Points

The result: a 500-pod cluster running Cilium uses roughly 2-3% of a single vCPU per node for eBPF datapath processing. The entire observability layer is measured in millicores per node, not 250 idle vCPUs spread across the cluster.

Cilium and Hubble Replace Your Mesh Observability Layer

Cilium is a CNI plugin that replaces kube-proxy and iptables with an eBPF-native dataplane. On large clusters where iptables rule counts exceed 10,000, Cilium reduces per-connection latency by up to 40% because eBPF hash table lookups scale in O(1) versus iptables linear traversal.

Hubble is Cilium's observability layer. It attaches to the same eBPF hook points and gives you per-flow visibility at L3 (IP), L4 (TCP/UDP port), and L7 (HTTP path, gRPC method, DNS query, Kafka topic). Every connection between pods is recorded: source pod, destination pod, protocol, latency, and outcome. This covers what Kiali and Jaeger give you in an Istio mesh, without a proxy in the path.

Cilium and Hubble Architecture

Cilium also enforces L7 network policy without a proxy. You can write a policy that allows only GET /api/health from service A to service B, and blocks everything else at the kernel level. Kubernetes native NetworkPolicy only operates at L4. This matters for cloud governance enforcement because policy coverage extends deeper into the protocol stack.

Capability Envoy / Istio Cilium / Hubble Pixie
L3/L4 flow visibility Yes Yes Yes
L7 HTTP/gRPC inspection Yes Yes Yes
DNS query visibility Yes Yes Partial
mTLS between pods Yes WireGuard (1.14+) No
Application flame graphs No No Yes
SQL query capture No No Yes
CPU overhead at 100 pods ~50 vCPU (idle) ~0.3 vCPU (idle) ~0.5 vCPU (idle)
Requires code changes No No No
Per-pod process injection Yes No No

Pixie Profiles Your Application Without a Single Line of Instrumentation

Pixie uses eBPF uprobes to hook into application-level function calls without modifying application code. When Pixie loads onto a node, it attaches uprobes to Go, Java, Python, and Node.js runtime functions. It captures HTTP request/response pairs, database queries (PostgreSQL, MySQL, Redis), gRPC calls, and CPU flame graphs.

The CPU overhead at Verizon Media's production deployment measured under 2% of total cluster CPU. Pixie stores this telemetry locally on each node and retains roughly 1 hour of full-fidelity data. For longer retention, it exports to a Vizier-compatible backend (the Pixie-hosted cloud or a self-hosted instance).

The practical use case: a latency spike at 2am triggers an alert. You open Pixie, query the node that handled the spike, and see the exact SQL query that took 4.3 seconds instead of the usual 12ms. No log correlation, no distributed trace assembly, no context switching between four dashboards. The eBPF uprobe captured the full query text and latency in kernel space before the application even returned the response.

This works because uprobes fire synchronously at the function call boundary. The application cannot complete the function without the uprobe handler executing first. The data is captured at the source, in kernel space, with microsecond precision.

When You Should Still Keep Your Sidecar

eBPF tools have real gaps. Understanding them prevents you from migrating off Istio and losing capabilities you depend on.

mTLS with per-service certificates is the strongest holdout. Cilium 1.14 added WireGuard-based node-to-node encryption. This encrypts all inter-node traffic transparently, which covers most mTLS use cases. But it does not give you per-service certificates signed by a workload identity system like SPIFFE/SPIRE. If your compliance posture requires individual certificate rotation per service identity, Istio with Envoy still owns this.

Complex traffic policies are the second holdout. Envoy has 8 years of traffic shaping primitives: per-route retries, circuit breakers, fault injection, header manipulation, Lua and Wasm filter chains. Cilium can enforce L7 allow/deny policy, but it does not implement configurable retry logic or circuit breaker state machines at the eBPF layer. If your platform engineering team has built golden path templates around Istio VirtualService and DestinationRule objects, replacing those requires rebuilding the traffic management layer, not just swapping the CNI.

Capability eBPF-Native Today Still Needs Envoy
L7 allow/deny network policy Cilium
Per-flow observability Cilium + Hubble
Application profiling, SQL capture Pixie
Node-level encryption Cilium WireGuard
Per-service mTLS + SPIFFE certificates Istio + Envoy
Configurable retries + circuit breakers Envoy
Wasm / Lua filter chains Envoy
Multi-cluster east-west routing Partial (Cilium Cluster Mesh) Istio + Envoy

This works when: your primary need is observability and policy enforcement, and you can tolerate node-level rather than service-level encryption. It breaks when: your security team requires individual SPIFFE certificate rotation, or when your services rely on Envoy traffic shaping primitives that have no eBPF equivalent yet.

Migrating Off Sidecars Without Losing Coverage

The migration runs in four phases. Rushing any phase means a gap in observability during the transition.

Phase 1: Install Cilium as CNI. If you are running kube-proxy, enable Cilium in kube-proxy replacement mode. This is a rolling node replacement: cordon a node, drain it, reinstall with Cilium CNI, uncordon. No application changes. Cilium takes over iptables-based routing immediately. At this point, you have eBPF networking but Istio sidecars are still injecting.

Phase 2: Enable Hubble. Hubble deploys as a DaemonSet. It connects to the Cilium agent already running on each node and starts exporting flows. Point Hubble Relay at your existing Prometheus/Grafana stack. At this point, Hubble flow data and Istio telemetry are both available. You can validate that Hubble coverage matches Istio coverage before disabling the sidecars.

Phase 3: Install Pixie. Pixie's edge module deploys as a DaemonSet. It loads eBPF uprobes for your language runtimes. Validate that Pixie is capturing the same request latency, error rate, and database queries you were getting from Jaeger traces.

Phase 4: Disable Istio injection namespace by namespace. Remove the istio-injection: enabled label from one namespace. Let it run for 72 hours and compare Hubble + Pixie coverage against the Istio-era dashboards. If coverage is equivalent, proceed to the next namespace. Roll back by re-adding the label and restarting pods.

Migration Phases: Cilium to eBPF-Native

The metric to track at each phase: flow coverage percentage. Measure the percentage of pod-to-pod connections visible in Hubble versus the same connections visible in Istio's telemetry before migration. Target 100% match before proceeding. If you see gaps, check that Cilium's eBPF programs loaded correctly on all nodes (cilium status will show missing programs).

On a 100-pod cluster, completing this migration recovers approximately 50 vCPUs of idle compute. At AWS m5.4xlarge on-demand pricing, that is 1,660 USD per month returned to your application workloads. Clusters with well-tagged cost attribution will see this recovery reflected immediately in their per-namespace cost reports.

The sidecar model made sense when eBPF was not mature enough for production observability. That changed. Cilium is a CNCF graduated project. Pixie runs at scale at dozens of companies. Hubble gives you L7 visibility that Kiali provides, without the proxy. The question in 2026 is not whether eBPF can replace your mesh observability. It is whether you have scheduled the migration yet.