You’ve just unboxed three shiny new Rockchip RK3588-based boards—perhaps the Orange Pi 5 Plus or the Radxa Rock 5B—and you’re envisioning a high-performance Kubernetes edge cluster that rivals mid-range x86 servers. You’ve got the 2.5GbE ports wired up, the NVMe drives slotted in, and K3s installed. But then, the reality of “standard” networking hits. As your microservices scale, you notice a creeping latency. Your CPU usage spikes during heavy API traffic, not because of your code, but because the Linux kernel is sweating through thousands of sequential iptables rules just to route a packet.
\\n\\nIt is a frustrating bottleneck that many edge enthusiasts ignore until their cluster starts choking under load. The default K3s networking stack (Flannel) is designed for compatibility, not for the high-throughput, low-latency potential of the RK3588’s octa-core architecture. You are effectively driving a Ferrari in a school zone. By sticking with legacy kube-proxy and iptables, you are leaving nearly 30% of your networking performance on the table and wasting precious CPU cycles that should be dedicated to your AI inference or media transcoding workloads.
To unlock the full 2.5GbE potential of the RK3588, you must deploy K3s without Flannel or kube-proxy and install Cilium in eBPF-only mode. This replaces inefficient iptables filtering with direct kernel-level bytecode, reducing CPU overhead by 40% and achieving near-wire-rate 2.37 Gbps throughput between pods with sub-millisecond latency.
\\nWhy Does Default K3s Networking Throttle Your RK3588 Cluster?
\\n\\nThe “costly trap” most practitioners fall into is assuming that because K3s is “lightweight,” its networking is optimized for ARM64 edge hardware. It isn’t. By default, K3s uses Flannel for the CNI (Container Network Interface) and kube-proxy to manage service routing. kube-proxy relies on iptables, a legacy framework within the Linux kernel that was never intended to handle the dynamic, high-churn environment of Kubernetes.
In an iptables-based cluster, every time a packet enters a node, the kernel must evaluate it against a list of rules. These rules grow linearly with the number of Services and Pods. On a 3-node RK3588 cluster running fifty services, your kernel might be checking hundreds of rules for every single packet. This is a sequential process; it doesn’t scale. On the RK3588, while the Cortex-A76 cores are powerful, wasting their cycles on O(n) lookups is an architectural sin.
\\n\\nCilium changes the game by using eBPF (extended Berkeley Packet Filter). Instead of traversing a list of rules, eBPF allows us to inject small, sandboxed programs directly into the kernel’s networking hooks. When a packet arrives, the eBPF program knows exactly where it needs to go based on a hash table lookup—an O(1) operation. This is the difference between searching every room in a hotel for a guest (iptables) and having a GPS that takes you directly to their door (eBPF).
\\n\\n| Feature Performance | \\nStandard K3s (Flannel + iptables) | \\nCilium eBPF (No kube-proxy) | \\nRK3588 Real-World Impact | \\n
|---|---|---|---|
| Network Throughput | \\n~1.6 – 1.8 Gbps (CPU limited) | \\n2.35 – 2.41 Gbps (Wire speed) | \\nFully saturates 2.5GbE interfaces. | \\n
| CPU Overhead | \\nHigh (Scales with Service count) | \\nNegligible (Constant time) | \\nSaves 1-2 cores for app workloads. | \\n
| Service Latency | \\nVariable (Jitter under load) | \\nUltra-low (Deterministic) | \\nCrucial for real-time edge AI. | \\n
| Observability | \\nBasic (Logs/Metrics) | \\nDeep (Hubble Flow Visualizer) | \\nInstant debugging of dropped packets. | \\n
Does Your RK3588 Kernel Support eBPF?
\\n\\nBefore we touch a single line of K3s code, we have to address the elephant in the room: the kernel. The RK3588 is a relatively new SoC, and while many vendors provide 5.10.x or 6.1.x kernels, not all of them come with the necessary BPF flags enabled. If your kernel doesn’t support BPF, Cilium will fail to start, and your cluster will have no networking.
\\n\\nYou need to verify that your current OS (whether it’s Armbian, Joshua-Riek’s Ubuntu, or a vendor BSP) has the following flags set in the kernel config:\\n
- \\n
CONFIG_BPF=y\\n \\n CONFIG_BPF_SYSCALL=y\\n \\n CONFIG_NET_CLS_ACT=y\\n \\n CONFIG_BPF_JIT=y\\n \\n CONFIG_HAVE_EBPF_JIT=y\\n
You can check this quickly by running zgrep BPF /proc/config.gz or checking /boot/config-$(uname -r). If these are missing, you’ll need to switch to a more modern distribution like Joshua-Riek’s Ubuntu for Rockchip, which is specifically tuned for these advanced features.
How to Deploy the High-Performance K3s + Cilium Stack
\\n\\nThis is the actionable playbook. We aren’t just installing software; we are surgically removing the legacy components of K3s and replacing them with a modern eBPF engine.
\\n\\nStep 1: The “Clean Slate” K3s Bootstrap
\\nWhen you install K3s on your master node, you must tell it explicitly not to install the default networking components. If you miss this step, Cilium will conflict with Flannel, and you’ll spend your afternoon untangling a routing nightmare.\\n\\nRun this on your primary master node:\\ncurl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--flannel-backend=none --disable-network-policy --disable-kube-proxy --disable=servicelb --disable=traefik" sh -
Why these flags?\\n
- \\n
--flannel-backend=none: Stops K3s from installing its own CNI.\\n \\n --disable-network-policy: We want Cilium to handle security policies via eBPF.\\n \\n --disable-kube-proxy: This is the secret sauce. We are removing the iptables-based proxy entirely.\\n \\n --disable=servicelb: We’ll use Cilium’s native L2 announcement or MetalLB later.\\n
Step 2: Install the Cilium CLI and Helm
\\nCilium is best managed via its own CLI tool and Helm. On your master node (or your management workstation withkubectl access), install the Cilium CLI:\\n\\nCILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt)\\nCLI_ARCH=arm64\\ncurl -L --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz\\nsudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin\\nrm cilium-linux-${CLI_ARCH}.tar.gz
Step 3: Deploy Cilium with Kube-Proxy Replacement
\\nNow we deploy Cilium. The critical part here is thekubeProxyReplacement setting. This tells Cilium to take over the duties of kube-proxy using eBPF.\\n\\nCreate a values.yaml for Cilium:\\n\n
\\nkubeProxyReplacement: true\\nk8sServiceHost: 127.0.0.1 # Change to your Master IP\\nk8sServicePort: 6443\\nnodesWithoutProxy: true\\noperator:\\n replicas: 1 # Save resources on small clusters\\nipam:\\n mode: "cluster-pool"\\n operator:\\n clusterPoolIPv4PodCIDRList: ["10.42.0.0/16"]\\nhubble:\\n enabled: true\\n relay:\\n enabled: true\\n ui:\\n enabled: true\\n
Install via Helm:\\nhelm install cilium cilium/cilium --version 1.14.x --namespace kube-system -f values.yaml
Step 4: Verify the eBPF Data Path
\\nOnce the pods are running, use the Cilium CLI to verify that thekube-proxy replacement is active. This is the moment of truth.\\n\\ncilium status --wait
Look for the line: KubeProxyReplacement: Strict. This confirms that iptables is no longer handling your service routing. You are now running on pure eBPF.
Benchmarking the 2.5GbE Performance Gain
\\n\\nTo truly appreciate what you’ve built, you need to see the numbers. Install iperf3 on two different pods located on two different RK3588 nodes.
In a standard Flannel/iptables setup, you might see speeds fluctuating between 1.4 Gbps and 1.8 Gbps, with one of the A76 CPU cores hitting 60-70% utilization just to process the interrupts and rules.
\\n\\nWith Cilium eBPF, run the same test:\\nkubectl exec -it pod-a -- iperf3 -s\\nkubectl exec -it pod-b -- iperf3 -c [pod-a-ip]
You should see a rock-solid 2.37 Gbps (the effective limit of 2.5GbE after overhead). More importantly, check your CPU usage during the test. You’ll notice the CPU load is significantly lower—often under 15%—because the kernel is handling the packet switching with surgical precision.
\\n\\nVisualizing Traffic with Hubble
\\nOne of the most significant “hidden” benefits of this setup is Hubble. Because Cilium sits in the kernel, it sees every single packet flow. By enabling the Hubble UI, you get a real-time graphical map of your cluster’s communications.\\n\\nTo access it, run:\\ncilium hubble ui
This will port-forward the UI to your local machine. You can now see exactly which services are talking to each other, identify packet drops in real-time, and even see the latency of individual API calls. For a sysadmin, this is like having X-ray vision for your network.
\\n\\nFrequently Asked Questions
\\n\\nCan I migrate an existing K3s cluster to Cilium?
\\nYes, but it is risky. You must first disable Flannel and kube-proxy in the K3s config, restart the service, and then install Cilium. It is almost always cleaner to backup your manifests and redeploy the cluster with the correct flags from the start to avoid stale iptables rules lingering in the kernel.
\\nDoes Cilium work on RK3588 boards with only 4GB of RAM?
\\nIt does, but you should tune it. Cilium’s agent and operator can consume ~300-500MB of RAM. On 4GB models, ensure you set operator.replicas: 1 and consider disabling the Hubble UI if you are tight on memory. The performance gains in CPU efficiency usually outweigh the RAM cost.
Why use “Strict” mode for kube-proxy replacement?
\\n“Strict” mode ensures that Cilium handles all service traffic and that no fallback to iptables occurs. This is vital for the RK3588 because it guarantees that you are bypassing the bottleneck entirely. If set to “Partial,” some traffic might still leak into the slow iptables path.
\\n\\nRadxa ROCK 5B+ vs Orange Pi 5 Max (RK3588 Benchmarks) • \\nEdge AI Carrier Boards: Seeed vs Auvidea Jetson Traps • \\nK3s Cluster on RK3588: Cilium eBPF CNI Networking • \\nIntel NPU 4 vs AMD XDNA 2: Copilot+ AI TOPS • \\nGroq LPU vs SambaNova SN40L Deterministic Silicon.\\n
Scale your edge vision nodes into an orchestrated micro-cluster with our hands-on setup guide for a Sipeed MaixCAM vs ESP32-S3: Edge Computer Vision Speeds.
\\n