![]() | |
![]() Command line session showing the status of a Cilium installation in a Kind cluster | |
Original author(s) | Thomas Graf, Daniel Borkmann, André Martins, Madhusudan Challa[1] |
---|---|
Developer(s) | Open source community, Isovalent, Google, Datadog, Red Hat, Cloud Native Computing Foundation[2] |
Initial release | December 16, 2015[1] |
Stable release | 1.15
/ 31 January 2024[3] |
Repository | github |
Written in | Go, eBPF, C, C++ |
Operating system | Linux, Windows[4] |
Platform | x86-64, ARM[5] |
Available in | English |
Type | Cloud-native Networking, Security, Observability |
License | Apache License 2.0, Dual GPL-2.0-only or BSD-2-clause for eBPF[6] |
Website | cilium.io |
Cilium is a cloud native technology for networking, observability, and security.[1] It is based on the kernel technology eBPF, originally for better networking performance, and now leverages many additional features for different use cases. The core networking component has evolved from only providing a flat Layer 3 network for containers to including advanced networking features, like BGP and Service mesh, within a Kubernetes cluster, across multiple clusters, and connecting with the world outside Kubernetes.[1] Hubble was created as the network observability component and Tetragon was later added for security observability and runtime enforcement.[1] Cilium runs on Linux and is one of the first eBPF applications being ported to Microsoft Windows through the eBPF on Windows project.[7]
History
[edit]Evolution from Networking CNI (Container Network Interface)
Cilium began as a networking CNI[8] for container workloads. It was originally IPv6 only and supported multiple container orchestrators, like Kubernetes. The original vision for Cilium was to build an intent and identity-based high-performance container networking platform.[9] As the cloud native ecosystem expanded, Cilium added new projects and features to address new problems in the space.
The table below summarises some of the most significant milestones of this evolution:
- December 2015 - Initial commit to the Cilium project[10]
- May 2016 - Network policy was added, expanding the scope beyond just networking[11]
- August 2016 - Cilium was initially announced during LinuxCon as a project providing fast IPv6 container networking with eBPF and XDP.[9] Today, Cilium has been adopted by major cloud provider's Kubernetes offerings and is one of the most widely used CNIs.
- August 2017 - ebpf-go was created as a library to read, modify, and load eBPF programs and attach them to various hooks.[12]
- April 2018 - Cilium 1.0 is the first stable release[13]
- November 2019 - Hubble was launched to provide eBPF-based observability to network flows[14]
- August 2020 - Chosen by Google as the basis for their Kubernetes Dataplane v2[15]
- September 2021 - AWS picks Cilium for Networking & Security on EKS Anywhere[16]
- October 2021 - Pwru was launched for tracing network packets in the Linux kernel with advanced filtering capabilities[17][18]
- October 2021 - Accepted into CNCF as an incubation level project[19]
- December 2021 - Cilium Service Mesh launched to help manage traffic between services[20]
- May 2022 - Tetragon open sourced to cover security observability and runtime enforcement[21][22]
- October 2022 - Chosen as CNI for Azure[23][24]
- April 2023 - Cilium Mesh launched to connect workloads and machines across cloud, on-prem, and edge[25][26][27]
- April 2023 - First CiliumCon hosted as a part of KubeCon[28]
- October 2023 - Cilium becomes a CNCF Graduated project [29]
CNCF
[edit]Cilium was accepted into the Cloud Native Computing Foundation on October 13th, 2021 as an incubation-level project. It applied to become a graduated project on October 27th 2022.[19] It became a Graduated project one year later. Cilium is one of the fastest-moving projects in the CNCF ecosystem.[30]
Adoption
[edit]Cilium has been adopted by many large-scale production users, including over 100 that have stated it publicly,[31] for example:
- Datadog uses Cilium as their CNI and kube-proxy replacement[32][33]
- Ascend uses Cilium as their one CNI across multiple cloud providers[34]
- Bell Canada uses Cilium and eBPF for telco networking[35][36]
- Cosmonic uses Cilium for their Nomad-based PaaS[37][38][39]
- IKEA uses Cilium for their self-hosted bare-metal private cloud[40]
- S&P Global uses Cilium as its CNI[41]
- Sky uses Cilium as their CNI and for network security[42]
- The New York Times uses Cilium on EKS for multi-region multi-tenant shared clusters[43]
- Trip.com uses Cilium both on premise and in AWS[44]
Cilium is the CNI for many cloud providers including Alibaba,[45] APPUiO,[46] Azure,[47] AWS,[16] DigitalOcean,[48] Exoscale,[49] Google Cloud,[15] Hetzner,[50] and Tencent Cloud.[51]
Projects Overview
[edit]Cilium
[edit]Cilium began as a container networking project. With the growth of Kubernetes and container orchestration, Cilium became a CNI,[8] providing basic things like configuring container network interfaces and Pod to Pod connectivity. From the beginning, Cilium based its networking on eBPF rather than iptables or IPVS, betting that eBPF would become the future of cloud native networking.[52]
Cilium’s eBPF based dataplane provides a simple flat Layer 3 network with the ability to span multiple clusters in either a native routing or overlay mode with Cilium Cluster Mesh. It is Layer 7-protocol aware and can enforce network policies on Layer 3 to Layer 7 and with FQDN using an identity-based security model that is decoupled from network addressing.
Cilium implements distributed load balancing for traffic between Pods and to external services, and is able to fully replace kube-proxy,[53] using XDP, socket-based load-balancing and efficient hash tables in eBPF. It also supports advanced functionality like integrated ingress and egress gateways,[54] bandwidth management, a stand-alone load balancer, and service mesh.[55]
Cilium is the first CNI to support advanced kernel features such as BBR TCP congestion control[56] and BIG TCP[57] for Kubernetes Pods.[58]
Hubble
[edit]Hubble is the observability, service map, and UI of Cilium which is shipped with the CNI.[59] [60] It can be used to observe individual network packet flows, view network policy decisions to allow or block traffic, and build up service maps showing how Kubernetes services are communicating.[61] Hubble can export this data to Prometheus, OpenTelemetry, Grafana, and Fluentd for further analysis of Layer 3/4 and Layer 7 metrics.[62]
Tetragon
[edit]Tetragon is the security observability and runtime enforcement project of Cilium.[63] Tetragon is a flexible Kubernetes-aware security observability and runtime enforcement tool that applies policy and filtering directly with eBPF. It allows users to monitor and observe the complete lifecycle of every process execution on their machine, translate policies for file monitoring, network observability, container security, and more into eBPF programs, and do synchronous monitoring, filtering, and enforcement completely in the kernel.
Go eBPF Library
[edit]ebpf-go is a pure-Go library to interact with the eBPF subsystem in the Linux kernel.[64] It has minimal external dependencies, emphasises reliability and compatibility, and is widely deployed in production.
Pwru
[edit]pwru ("Packet, where are you?") is an eBPF-based tool for tracing network packets in the Linux kernel with advanced filtering capabilities. It allows fine-grained introspection of kernel state to facilitate debugging network connectivity issues. Under the hood, pwru attaches eBPF debugging programs to all Linux kernel functions which are responsible for processing network packets.
This gives a user finer-grained view into a packet processing in the kernel than with tcpdump, Wireshark, or more traditional tools. Also, it can show packet metadata such as network namespace, processing timestamp, internal kernel packet representation fields, and more.
Use Cases
[edit]Networking
[edit]Cilium began as a networking project and has many features that allow it to provide a consistent connectivity experience from Kubernetes workloads to virtual machines and physical servers running in the cloud, on-premises, or at the edge. Some of these include:
- Container Network Interface (CNI)[65] - Provides networking for Kubernetes clusters
- Layer 4 Load Balancer[66] - Based on Maglev[67][68] and XDP[69] for handling north/south traffic
- Cluster Mesh[70] - Combines multiple Kubernetes clusters into one network
- Bandwidth and Latency Optimization[71] - Fair Queueing, TCP Optimization, and Rate Limiting
- kube-proxy replacement[72] - Replaces iptables with eBPF hash tables
- BGP[73] - Integrates into existing networks and provides load balancing in bare metal clusters
- Egress Gateway[74] - Provides a static IP for integration into external workloads
- Service Mesh[75][76] - Includes ingress, TLS termination, canary rollouts, rate limiting, and circuit breaking
- Gateway API[77] - Fully conformant implementation for managing ingress into Kubernetes clusters
- SRv6[78] - Defines packet processing in the network as a program
- BBR support for Pods[79] - Allows for better throughput and latency for Internet traffic
- NAT 46/64 Gateway[80] - Allows IPv4 services to talk with IPv6 ones and vice versa
- BIG TCP for IPv4/IPv6[81] - Enables better performance by reducing the number of packets traversing the stack
- Cilium Mesh[82][83] - Connects workloads running outside Kubernetes to ones running inside it
Observability
[edit]Being in the kernel, eBPF has complete visibility of everything that is happening on a machine. Cilium leverages this with the following features:
- Service Map[84] - Provides a UI for network flows and policy
- Network Flow Logs[85] - Provides Layer 3/4 and DNS visibility connected to identity
- Network Protocol Visibility[86] - Including HTTP, gRPC, Kafka, UDP, and SCTP
- Metrics & Tracing Export[87] - Sends data to Prometheus, OpenTelemetry, or other storage system
Security
[edit]eBPF can stop events in the kernel for security. Cilium projects leverage this through the following features:
- Transparent Encryption[88] - Utilizes either IPSec or WireGuard
- Network Policy[89] - Includes Layer 3 to Layer 7 and DNS-aware policies
- Runtime Enforcement[90] - Stops processes outside of policies with default policies
- File Integrity Monitoring[91] - Tracks modification to the system
Release timeline
[edit]Support windows
[edit]The chart below visualises the period for which each Cilium community maintained release is/was supported:
![](https://upload.wikimedia.org/wikipedia/en/timeline/cshp8db5tmnqipz5atjh4fer7qoe4nv.png)
Community
[edit]Cilium's official website lists online forums, messaging platforms, and in-person meetups for the Cilium user and developer community.
Conferences
[edit]Conferences dedicated to Cilium development in the past have included:
- CiliumCon EU 2023,[28] held in conjunction with KubeCon + CloudNativeCon EU 2023[92]
- CiliumCon NA 2023,[93] held in conjunction with KubeCon + CloudNativeCon NA 2023[94]
- CiliumCon EU 2024,[95] held in conjunction with KubeCon + CloudNativeCon EU 2024[96]
Annual Report
[edit]The Cilium community releases an annual report to cover how the community developed over the course of the year:
See also
[edit]References
[edit]- ^ a b c d e "The Cilium Story - Why We Created Cilium - Thomas Graf, Isovalent, CiliumCon EU 2023". YouTube. 10 June 2023. Retrieved 7 July 2023.
- ^ "Announcing the Cilium annual report". CNCF. 26 January 2023. Retrieved 7 July 2023.
- ^ "Cilium Stable Releases". GitHub. 10 February 2023. Retrieved 10 February 2023.
- ^ "Getting Linux based eBPF programs to run with eBPF for Windows". cloudblogs.microsoft.com. 7 July 2023. Retrieved 7 July 2023.
- ^ "Supported Architectures for Cilium". GitHub. 7 July 2023. Retrieved 7 July 2023.
- ^ "Cilium License". GitHub. 7 July 2023. Retrieved 7 July 2023.
- ^ "ebpf for windows on GitHub". GitHub. Retrieved 10 July 2023.
- ^ a b "CNI". cni.dev. Retrieved 10 July 2023.
- ^ a b "Cilium Fast IPV6 Container Networking with BPF and XDP". Slideshare. 28 May 2016. Retrieved 24 August 2016.
- ^ "Cilium Initial Commit". GitHub. 16 December 2015. Retrieved 10 July 2023.
- ^ "Network Policy added to Cilium". GitHub. 28 May 2016. Retrieved 10 July 2023.
- ^ "ebpf-go Initial Commit". GitHub. 29 August 2017. Retrieved 24 August 2016.
- ^ "Cilium 1.0 Advances Container Networking With Improved Security". eWeek.com. 24 April 2018. Retrieved 13 July 2023.
- ^ "Announcing Hubble - Network, Service & Security Observability for Kubernetes". Cilium.io. 19 November 2019. Retrieved 24 August 2016.
- ^ a b "New GKE Dataplane V2 increases security and visibility for containers". Google Cloud Platform. 20 August 2020. Retrieved 10 July 2023.
- ^ a b "AWS Picks Cilium As Networking And Security Layer". tfir.io. 13 September 2021. Retrieved 10 July 2023.
- ^ "pwru Initial Commit". GitHub. 12 October 2021. Retrieved 10 July 2023.
- ^ "Going from Packet Where Aren't You to pwru". Cilium.io. 8 February 2023. Retrieved 10 July 2023.
- ^ a b "Cilium joins CNCF as an incubating project". CNCF. 13 October 2021. Retrieved 10 July 2023.
- ^ "Cilium 1.12 Adds Cilium Service Mesh And Other New Features For Enterprise Kubernetes". tfir.io. 21 July 2022. Retrieved 10 July 2023.
- ^ "Tetragon – eBPF-based Security Observability & Runtime Enforcement". Isovalent.com. 16 May 2022. Retrieved 10 July 2023.
- ^ "Tetragon – eBPF-based Security Observability & Runtime Enforcement". thenewstack.io. 16 July 2022. Retrieved 10 July 2023.
- ^ Bansal, Deepak (2022-12-05). "Microsoft and Isovalent partner to bring next generation eBPF dataplane for cloud-native applications in Azure". Microsoft Azure Blog. Retrieved 2024-02-06.
- ^ Ke, Deepak Bansal, Qi (2023-06-22). "Azure CNI with Cilium: Most scalable and performant container networking in the Cloud". Microsoft Azure Blog. Retrieved 2024-02-06.
{{cite web}}
: CS1 maint: multiple names: authors list (link) - ^ "Cilium Mesh – One Mesh to Connect Them All". Isovalent.com. 19 May 2022. Retrieved 10 July 2023.
- ^ "Isovalent's Cilium Mesh bridges gap between Kubernetes and legacy workloads". siliconangle.com. 5 May 2023. Retrieved 10 July 2023.
- ^ "Isovalent introduces Isovalent Cilium Mesh to Securely Connect Networks Across On-Prem, Edge, and Cloud". finance.yahoo.com. 17 April 2023. Retrieved 10 July 2023.
- ^ a b "CiliumCon Europe 2023". Linux Foundation. Retrieved 10 July 2023.
- ^ https://www.cncf.io/announcements/2023/10/11/cloud-native-computing-foundation-announces-cilium-graduation/
- ^ "A look at the 2022 velocity of CNCF, Linux Foundation, and top 30 open source projects". Cloud Native Computing Foundation. 11 January 2023. Retrieved 10 July 2023.
- ^ "Who is using Cilium?". GitHub. Retrieved 10 July 2023.
- ^ "Datadog". Cloud Native Computing Foundation. 2022-10-11. Retrieved 2023-07-12.
- ^ "Tales from an eBPF Program's Murder Mystery - Hemanth Malla & Guillaume Fournier, Datadog". YouTube. 2022-10-11. Retrieved 2023-07-12.
- ^ "Case Study: Ascend". Cloud Native Computing Foundation. Retrieved 10 July 2023.
- ^ "Why eBPF is changing the telco networking space – Daniel Bernier, Bell Canada". YouTube. 21 August 2021. Retrieved 10 July 2023.
- ^ "Leveraging Cilium and SRv6 for Telco Networking - Daniel Bernier, Bell Canada". YouTube. 19 May 2022. Retrieved 10 July 2023.
- ^ "Cosmonic User Story: Running Cilium on Nomad for Wasm Workloads". Cilium.io. 18 Jan 2023. Retrieved 10 July 2023.
- ^ "Cosmonic Open Source Project Integrates Nomad and Cilium". CloudNativeNow.com. 26 May 2023. Retrieved 10 July 2023.
- ^ "The Cosmonic Open Source Project Combines Cilium And Nomad". Opensourceforu.com. 30 May 2023. Retrieved 10 July 2023.
- ^ "IKEA Private Cloud, eBPF Based Networking, Load Balancing, and Observability with Cilium". YouTube. 19 May 2022. Retrieved 13 July 2023.
- ^ "eBPF, a road to invisible network: S&P Global's Network Transformation Journey - Guru Ramamoorthy". YouTube. 4 October 2022. Retrieved 10 July 2023.
- ^ "eBPF & Cilium at Sky – Sebastian Duff, Anthony Comtois, Jospeh Samuel [sic], Sky". YouTube. 20 August 2021. Retrieved 10 July 2023.
- ^ "Designing and Securing a Multi-Tenant Runtime Environment at the New York Times - Ahmed Bebars". YouTube. 20 April 2023. Retrieved 10 July 2023.
- ^ "User Story - How Trip.com uses Cilium". Cilium.io. 5 February 2020. Retrieved 10 July 2023.
- ^ "Cilium High Performance Cloud Native Network". Alibaba Cloud. Retrieved 10 July 2023.
- ^ "Partnership with Isovalent". appuio.ch. 16 December 2021. Retrieved 10 July 2023.
- ^ "General availability: Azure CNI powered by Cilium". Microsoft Azure. 30 May 2023. Retrieved 10 July 2023.
- ^ "From Managed Kubernetes to App Platform: 1.5 Years of Cilium Usage at DigitalOcean" (PDF). ebpf.io. 28 October 2020. Retrieved 10 July 2023.
- ^ "Cilium CNI & SKS". changelog.exoscale.com. 3 June 2022. Retrieved 10 July 2023.
- ^ "Performance Testing Cilium Ingress at Hetzner Cloud". cilium.io. 5 January 2023. Retrieved 10 July 2023.
- ^ "Tencent Cloud TKE-based on Cilium unified hybrid cloud container network". segmentfault.com. 1 July 2021. Retrieved 10 July 2023.
- ^ "Why is the kernel community replacing iptables with BPF?". linux.com. 23 April 2018. Retrieved 10 July 2023.
- ^ "Kubernetes Without kube-proxy". docs.cilium.io. Retrieved 10 July 2023.
- ^ "Egress Gateway". docs.cilium.io. Retrieved 10 July 2023.
- ^ "Cilium 1.12 GA: Cilium Service Mesh and other major new features for enterprise Kubernetes". Cloud Native Computing Foundation. 13 July 2022. Retrieved 10 July 2023.
- ^ Cardwell, Neal; Cheng, Yuchung; Gunn, C. Stephen; Yeganeh, Soheil Hassas; Jacobson, Van (2016). "BBR: Congestion-Based Congestion Control". ACM Queue. 14, September–October: 20–53.
- ^ "tcp: BIG TCP implementation [LWN.net]". lwn.net. Retrieved 2023-07-12.
- ^ 100Gbit/S Clusters With Cilium: Building Tomorrows Networking- Daniel Borkmann & Nikolay Aleksandrov, retrieved 2023-07-12
- ^ "Hubble on Github". GitHub. Retrieved 10 July 2023.
- ^ "Hubble Series (Part 1): Re-introducing Hubble". Isovalent.com. 5 June 2023. Retrieved 10 July 2023.
- ^ "Service Map & Hubble UI". docs.cilium.io. Retrieved 10 July 2023.
- ^ "Monitoring & Metrics". docs.cilium.io. Retrieved 10 July 2023.
- ^ "Tetragon on Github". GitHub. Retrieved 10 July 2023.
- ^ "ebpf-go on Github". GitHub. Retrieved 10 July 2023.
- ^ "Securing Your Kubernetes Cluster: Cilium and Network Policies". learncloudnative.com. 14 June 2023. Retrieved 10 July 2023.
- ^ "Layer 4 Load Balancer". cilium.io. Retrieved 10 July 2023.
- ^ "Maglev: A Fast and Reliable Software Network Load Balancer". research.google.com. Retrieved 10 July 2023.
- ^ "Cilium 1.9: Maglev, Deny Policies, VM Support, OpenShift, Hubble mTLS, Bandwidth Manager, eBPF Node-Local Redirect, Datapath Optimizations, and more". cilium.io. Retrieved 2023-07-12.
- ^ "Cilium 1.8: XDP Load Balancing, Cluster-wide Flow Visibility, Host Network Policy, Native GKE & Azure modes, Session Affinity, CRD-mode Scalability, Policy Audit mode, ..." cilium.io. Retrieved 2023-07-12.
- ^ "Cluster Mesh". cilium.io. Retrieved 10 July 2023.
- ^ "Bandwidth And Latency Optimization". cilium.io. Retrieved 10 July 2023.
- ^ "kube-proxy replacement". cilium.io. Retrieved 10 July 2023.
- ^ "BGP". cilium.io. Retrieved 10 July 2023.
- ^ "Egress Gateway". cilium.io. Retrieved 10 July 2023.
- ^ "Cilium Service Mesh". cilium.io. Retrieved 10 July 2023.
- ^ "Redefining service mesh with Cilium". medium.com. 31 July 2022. Retrieved 10 July 2023.
- ^ "Gateway API". cilium.io. Retrieved 10 July 2023.
- ^ "Cloud Native Telco Day Europe 2022: Leveraging Cilium and SRv6 for Telco Net..." cloudnativetelcodayeu22.sched.com. Retrieved 2023-07-12.
- ^ "Accelerate network performance with Cilium BBR - Isovalent". isovalent.com. Retrieved 2023-07-12.
- ^ "Cilium 1.12 - Ingress, Multi-Cluster, Service Mesh, External Workloads, ..." isovalent.com. Retrieved 2023-07-12.
- ^ "Tuning Guide — Cilium 1.15.0-dev documentation". docs.cilium.io. Retrieved 2023-07-12.
- ^ "Cilium Mesh - One Mesh to Connect Them All - Isovalent". isovalent.com. Retrieved 2023-07-12.
- ^ "Cilium Mesh: A new way to extend Kubernetes benefits across on-premises and cloud networking". techrepublic.com. 26 May 2023. Retrieved 2023-07-12.
- ^ "Service Map". cilium.io. Retrieved 10 July 2023.
- ^ "Identity-Aware L3/L4/DNS Network Flow Logs". cilium.io. Retrieved 10 July 2023.
- ^ "Advanced Network Protocol Visibility". cilium.io. Retrieved 10 July 2023.
- ^ "Metrics & Tracing Export". cilium.io. Retrieved 10 July 2023.
- ^ "Transparent Encryption". cilium.io. Retrieved 10 July 2023.
- ^ "Advanced Network Policy". cilium.io. Retrieved 10 July 2023.
- ^ "Runtime Enforcement". cilium.io. Retrieved 10 July 2023.
- ^ "Tetragon - eBPF-based Security Observability & Runtime Enforcement - Isovalent". isovalent.com. Retrieved 2023-07-12.
- ^ "KubeCon + CloudNativeCon Europe". Linux Foundation Events. Retrieved 2023-07-12.
- ^ "CiliumCon North America 2023". events.linuxfoundation.com. Retrieved 11 July 2023.
- ^ "KubeCon + CloudNativeCon North America". Linux Foundation Events. Retrieved 2023-07-12.
- ^ "Cilium + eBPF Day Europe". Linux Foundation Events. Retrieved 2024-06-07.
- ^ "KubeCon + CloudNativeCon Europe". Linux Foundation Events. Retrieved 2024-06-07.
- ^ "Announcing the Cilium annual report". CNCF. 2023-01-26. Retrieved 2024-02-06.
- ^ "Cilium's 2023 annual report". CNCF. 2023-12-21. Retrieved 2024-02-06.