<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Robert Varga on Medium]]></title>
        <description><![CDATA[Stories by Robert Varga on Medium]]></description>
        <link>https://medium.com/@robert.varga?source=rss-284b1ee20c2c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_d7FJxoZO2ojmps6</url>
            <title>Stories by Robert Varga on Medium</title>
            <link>https://medium.com/@robert.varga?source=rss-284b1ee20c2c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:39:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@robert.varga/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My first impressions of Cilium]]></title>
            <link>https://medium.com/codefactory/my-first-impressions-of-cilium-b205a31efd61?source=rss-284b1ee20c2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b205a31efd61</guid>
            <category><![CDATA[code-factory]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubecon]]></category>
            <category><![CDATA[cni]]></category>
            <category><![CDATA[cilium]]></category>
            <dc:creator><![CDATA[Robert Varga]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 09:27:20 GMT</pubDate>
            <atom:updated>2022-07-25T09:33:15.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYRiGx6wgmj1RysVckCrXA.jpeg" /></figure><p>This year was my first visit to KubeCon in Valencia which was great and I had the opportunity to learn about many new technologies. I was happy to be able to know about (for me) a new approach to Kubernetes CNI called Cilium.</p><p>So, let’s find out together what Cilium is.</p><h3>Introduction</h3><blockquote>Cilium is an open source software for providing, securing and observing network connectivity between container workloads — cloud native, and fueled by the revolutionary Kernel technology eBPF.</blockquote><p>In order to understand how Cilium works, we need to know about eBPF which is relied on <strong>BPF</strong> (<strong>Berkeley Packet Filter)</strong> old but gold technology that was released in 1992. eBFP is an extended version of the BPF packet filtering (JIT) mechanism that the Linux kernel provides us (which has been introduced in Linux kernel version 3.15). Briefly, eBPF allows you to run code from userspace in the kernel and allow sharing of data between eBPF kernel programs and between kernel and user-space applications without any kernel source modification. Sounds great.</p><p>If you are more interested in eBPF, I would recommend <a href="https://isovalent.com/ebpf/">“What is eBPF?”</a> titled book written by Liz Rice (Chief Open Source Officer at Isovalent). Besides, I am glad to have the opportunity to attend her lectures in Valencia.</p><p>Hence we need an eBPF program that takes advantage of its benefits and here comes Cilium into the picture. Cilium is an eBPF program that enables the dynamic insertion of network security visibility and control logic within the Linux kernel. Why is this good for us? Because Cilium significantly simplifies routing when it can direct packages to bypass the host networking stack so that it realizes <a href="https://cilium.io/blog/2021/05/11/cni-benchmark">measurable performance improvements.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*WxZsRgO0eSn-ycSSG0XGZQ.png" /><figcaption>Figure 1: Bypassing the host networking stack with eBPF</figcaption></figure><h4>Additional features in the Kubernetes cluster:</h4><ul><li><strong>Egress suppor</strong>t to external services</li><li>Enhanced Networkpolicy support by providing CRDs (Custom Resource Definition). CiliumNetworkPolicy CRD enables to <strong>create L7 policy</strong> enforcement for both ingress and egress for HTTP protocol.</li><li><strong>Load Balancing</strong> by using ClusterIP implementation.</li><li><strong>Hubble </strong>component of Cilium is an observability tool with both a command line interface and UI that focuses on network flows in your Kubernetes clusters.</li><li><strong>Tetragon </strong>component of Cilium offers another powerful approach, using eBPF to monitor the four golden signals of container security observability: process execution, network sockets, file access, and layer 7 network identity.</li></ul><h3>Tutorial</h3><p>In this tutorial, I used an on-prem preinstalled Kubernetes cluster with 3 master and 3 worker nodes without CNI. This will be our starting point.</p><h4>Prerequisites</h4><ul><li>Up and running Kubernetes cluster</li><li>Installed Helm 3 (Helm 2 is no longer supported)</li></ul><h4>Installation</h4><ul><li>Install Cilium CLI tool</li></ul><pre>curl -L --remote-name-all <a href="https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz%7B,.sha256sum">https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz{,.sha256sum</a>}<br>sha256sum --check cilium-linux-amd64.tar.gz.sha256sum<br>sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin<br>rm cilium-linux-amd64.tar.gz{,.sha256sum}</pre><pre># cilium version<br>cilium-cli: v0.10.7 compiled with go1.18.1 on linux/amd64<br>cilium image (default): v1.10.11<br>cilium image (stable): v1.11.6<br>cilium image (running): v1.9.16</pre><ul><li>Adding Cilium Helm repo</li></ul><pre>helm repo add cilium <a href="https://helm.cilium.io/">https://helm.cilium.io/</a></pre><ul><li>Install Cilium with Hubble by Helm values (Additionally set up IPAM mode, Pod IPv4 CIDR, and pool size)</li></ul><pre>helm install cilium cilium/cilium — version 1.9.16 \<br> — namespace kube-system \<br> — set ipam.mode=cluster-pool \<br> — set hubble.relay.enabled=true \<br> — set hubble.enabled=true \<br> — set hubble.ui.enabled=true \<br> — set ipam.operator.clusterPoolIPv4PodCIDR=192.168.0.0/16 \<br> — set ipam.operator.clusterPoolIPv4MaskSize=24</pre><ul><li>Check Cilium status</li></ul><pre>cilium status<br>    /¯¯\<br> /¯¯\__/¯¯\    Cilium:         OK<br> \__/¯¯\__/    Operator:       OK<br> /¯¯\__/¯¯\    Hubble:         OK<br> \__/¯¯\__/    ClusterMesh:    disabled<br>    \__/</pre><pre>DaemonSet         cilium             Desired: 6, Ready: 6/6, Available: 6/6<br>Deployment        cilium-operator    Desired: 2, Ready: 2/2, Available: 2/2<br>Deployment        hubble-relay       Desired: 1, Ready: 1/1, Available: 1/1<br>Deployment        hubble-ui          Desired: 1, Ready: 1/1, Available: 1/1<br>Containers:       hubble-relay       Running: 1<br>                  hubble-ui          Running: 1<br>                  cilium             Running: 6<br>                  cilium-operator    Running: 2<br>Cluster Pods:     18/20 managed by Cilium<br>Image versions    cilium             quay.io/cilium/cilium:v1.9.16: 6<br>                  cilium-operator    quay.io/cilium/operator-generic:v1.9.16: 2<br>                  hubble-relay       quay.io/cilium/hubble-relay:v1.9.16: 1<br>                  hubble-ui          quay.io/cilium/hubble-ui:v0.8.5@sha256:4eaca1ec1741043cfba6066a165b3bf251590cf4ac66371c4f63fbed2224ebb4: 1<br>                  hubble-ui          quay.io/cilium/hubble-ui-backend:v0.8.5@sha256:2bce50cf6c32719d072706f7ceccad654bfa907b2745a496da99610776fe31ed: 1<br>                  hubble-ui          docker.io/envoyproxy/envoy:v1.18.4@sha256:e5c2bb2870d0e59ce917a5100311813b4ede96ce4eb0c6bfa879e3fbe3e83935: 1</pre><ul><li>And you can run a connectivity test as well to be sure everything is fine.</li></ul><pre>cilium connectivity test</pre><h3>Conclusion</h3><p>In this tutorial, I installed Cilium CNI on an existing on-prem Kubernetes cluster. Fortunately, it was smooth and everything worked the first time. It seems extraordinary and cutting-edge CNI and I am curious and I am planning to dig deep down into it in the next part.</p><h4>Sources</h4><ul><li><a href="https://cilium.io/">cilium.io</a></li><li><a href="https://github.com/lizrice/ebpf-beginners">https://github.com/lizrice/ebpf-beginners</a></li><li>“What is eBPF?” by Liz Rice — O’Reilly Media, 2022.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b205a31efd61" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codefactory/my-first-impressions-of-cilium-b205a31efd61">My first impressions of Cilium</a> was originally published in <a href="https://medium.com/codefactory">CodeFactory</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>