Cilium + EBPF: Observability and Security in Kubernetes
Building robust and secure clusters is one of the main challenges for those of us who work with cloud infrastructure. In Kubernetes-based environments, it is not enough to deploy the services: we also need to make sure they communicate securely and have a reliable observability system that lets us understand what is going on inside the cluster.
In this article we will see how to set up Cilium in a local environment to manage the network and security of a Kubernetes cluster, including L3/L4/L7 policies with CiliumNetworkPolicy, encryption between nodes with WireGuard and service exposure through the Gateway API. We will also show how to program and deploy eBPF agents inside the cluster, extending what Cilium already does. Finally, we will implement a metrics system built around Hubble, which will export metrics to Prometheus so we can visualize them with Grafana.


