Cilium
An open-source network plugin for Kubernetes, built on eBPF, that routes pod traffic, enforces network policies and can encrypt traffic between nodes.
In more detail
Cilium runs as a DaemonSet with one agent on each node. Setting encryption.enabled and encryption.type=wireguard makes it encrypt pod traffic that crosses nodes. Inside the agent pod, cilium-dbg status shows whether that encryption is on.
Example
kubectl -n kube-system exec ds/cilium -- cilium-dbg status | grep EncryptionRelated terms
- Container Network Interface — The Container Network Interface: a standard for plugins that give pods their network, such as Calico or Cilium.
- eBPF — A Linux kernel feature that runs small, verified programs inside the kernel when events such as system calls happen.
- WireGuard — A simple, modern encrypted network tunnel built into the Linux kernel, used by Cilium and others to encrypt traffic between nodes.
- NetworkPolicy — A Kubernetes object that controls which pods may send traffic to or receive traffic from which others, by labels, namespaces and IP ranges.
Taught in
- Two Hours, Sixteen Tasks: A CKS Plan — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Encrypting Pod-to-Pod Traffic: mTLS With Istio And Cilium — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Final Review: The Cluster You Would Defend — Certified Kubernetes Security Specialist (CKS) Exam Prep