Softwr

Cloud · head to head

Cilium vs etcd

Cilium logo

Cilium

Cloud

eBPF-based networking, observability and security for Kubernetes

From
Free
Free plan
Yes
etcd logo

etcd

Databases

A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Cilium lists eBPF datapath; only etcd lists raft consensus.
  • Where Cilium falls short: requires a recent Linux kernel, which rules out older distributions and some managed environments.

How do Cilium and etcd differ?

Cilium and etcd differ on pricing model, platforms (Self-hosted, Linux against Web) and category (Cloud against Databases). Only the attributes on which Cilium and etcd actually diverge.

Attributes where Cilium and etcd differ
AttributeCiliumetcd
Pricing modelOpen source, no licence feeOpen-source
PlatformsSelf-hosted, LinuxWeb
CategoryCloudDatabases

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Cilium.

Which features does each one have?

They share no listed features; 4 appear only for Cilium and 8 only for etcd. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Cilium

  • eBPF datapath
  • Identity-based policy
  • Hubble observability
  • Sidecar-free mesh

Only in etcd

  • Raft consensus
  • Linearizable reads
  • Transactions
  • Leases
  • Watches
  • MVCC revision history
  • Role-based access control
  • Snapshot backup and restore

What is each one used for?

Cilium is most often brought in for kubernetes networking at a scale where iptables-based CNI performance degrades; etcd for coordinating failover in a clustered database, as Patroni does for PostgreSQL. The jobs each tool is most often brought in to do.

Cilium

  • Kubernetes networking at a scale where iptables-based CNI performance degradesnot etcd
  • Network policy expressed on workload identity rather than fragile IP rulesnot etcd
  • Seeing which services actually talk to each other, and what policy is droppingnot etcd

etcd

  • Storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doingnot Cilium
  • Leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactionsnot Cilium
  • Service discovery and dynamic configuration where readers need to be notified of changes rather than poll for themnot Cilium
  • Coordinating failover in a clustered database, as Patroni does for PostgreSQLnot Cilium

Where do Cilium and etcd fall short?

Cilium's most cited limit: requires a recent Linux kernel, which rules out older distributions and some managed environments. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cilium

  • Requires a recent Linux kernel, which rules out older distributions and some managed environments
  • eBPF is genuinely hard to debug when it misbehaves, and the skill is rare on most teams
  • Broad scope — CNI, policy, mesh, observability — means the learning curve covers several domains at once

etcd

  • It is sized for coordination data, not application data: the default backend quota is 2 GB and 8 GB is the documented recommended maximum, and exceeding it puts the cluster into a NOSPACE alarm where it accepts no writes until an operator compacts, defragments and clears the alarm by hand
  • Every write is replicated and fsynced before acknowledgement, so cluster performance is bounded by the slowest disk in it; a member on network-attached storage with high fsync latency causes leader elections and cluster-wide latency spikes that look like network problems and are not
  • Adding members increases availability but reduces write throughput, because each write must reach a larger quorum; you run three or five members for fault tolerance, and increasing capacity means faster hardware rather than more nodes
  • There is no sharding and no multi-tenancy, so isolating workloads means running separate clusters, each with its own quorum, certificates, backup schedule and upgrade path, and that operational multiplication is often unexpected
  • Running it yourself is a real job: periodic compaction and defragmentation, snapshot backups you have actually rehearsed restoring, and rotation of both peer and client TLS certificates, none of which happens automatically outside a managed Kubernetes service
  • Losing quorum is not self-healing; recovering a cluster that has lost a majority means restoring from a snapshot and accepting that everything written since that snapshot is gone, which makes backup frequency a data-loss budget decision rather than a routine setting

How much do Cilium and etcd cost?

Cilium is free to use; etcd is free to use. Plan by plan below, from each vendor's own pricing page.

Cilium

Free
  • CiliumFree
    • Full functionality
    • No usage limits
    • Community support

etcd

Free

No published plan breakdown. See the etcd review.

Which should you pick?

Choose Cilium if

  • You need ebpf datapath.
  • You want to start without paying.
  • You work on Self-hosted, Linux.
  • You also want identity-based policy.

Choose etcd if

  • You need raft consensus.
  • You want to start without paying.
  • You also want linearizable reads.

Questions people ask

Is Cilium or etcd better?
It depends on the job. Cilium fits kubernetes networking at a scale where iptables-based CNI performance degrades; etcd fits storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing. Cilium starts at Free and etcd at Free.
Which is cheaper, Cilium or etcd?
Cilium starts at Free and etcd at Free.
Does Cilium or etcd run on more platforms?
Cilium runs on Self-hosted, Linux. etcd runs on Web.
Can I use Cilium for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cilium best used for?
Cilium is most often used for kubernetes networking at a scale where iptables-based cni performance degrades, network policy expressed on workload identity rather than fragile ip rules, seeing which services actually talk to each other, and what policy is dropping. Of those, kubernetes networking at a scale where iptables-based cni performance degrades and network policy expressed on workload identity rather than fragile ip rules are not what etcd is typically brought in for.
What can Cilium do that etcd cannot?
Cilium covers eBPF datapath, Identity-based policy, Hubble observability, Sidecar-free mesh. etcd covers Raft consensus, Linearizable reads, Transactions, Leases.

Answered from the vendors’ own pages

Cilium: Is Cilium free?

Yes, open source and CNCF-graduated. Isovalent sells an enterprise distribution and support.

etcd: Can I use etcd as an application database?

No. It is designed for metadata and coordination, with a recommended maximum store size of around 8 GB, no sharding and a write path deliberately optimised for durability rather than throughput. Application data belongs in a database built for it.

Cilium: What does eBPF change?

It lets Cilium run packet-processing programs inside the kernel instead of relying on iptables rule chains, which behave poorly as the number of services grows.

etcd: How many members should a cluster have?

Three for most cases, five where you need to survive two simultaneous failures. Always an odd number, because an even-sized cluster gains no additional fault tolerance while making quorum harder to reach.

Cilium: Does Cilium replace a service mesh?

It can cover much of what a mesh does without sidecars, though full mesh feature sets still favour Istio or Linkerd.

etcd: What happens when the store fills up?

The cluster raises a NOSPACE alarm and stops accepting writes, becoming effectively read-only. Recovery requires compacting old revisions, defragmenting each member and then explicitly disarming the alarm, all done by an operator.

etcd: Why is my etcd cluster slow or unstable?

Almost always disk latency. Because every write is fsynced before acknowledgement, slow or shared storage causes heartbeat timeouts, leader elections and cascading latency. Local SSDs with low fsync latency are effectively a requirement.

etcd: How does it compare with Consul or ZooKeeper?

All three provide consensus-backed coordination. etcd has the simplest data model and the Kubernetes ecosystem behind it; Consul bundles service discovery, health checking and a service mesh; ZooKeeper is older, JVM-based and still common under Kafka and Hadoop-era systems.

Share

Related pages

Other head to heads