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\\n

It 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.

\\n\\n
\\nDirect Practical Verdict:\\n

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.

\\n
\\n\\n

Why Does Default K3s Networking Throttle Your RK3588 Cluster?

\\n\\n

The “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.

\\n\\n

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\\n

Cilium 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
\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
Feature PerformanceStandard K3s (Flannel + iptables)Cilium eBPF (No kube-proxy)RK3588 Real-World Impact
Network Throughput~1.6 – 1.8 Gbps (CPU limited)2.35 – 2.41 Gbps (Wire speed)Fully saturates 2.5GbE interfaces.
CPU OverheadHigh (Scales with Service count)Negligible (Constant time)Saves 1-2 cores for app workloads.
Service LatencyVariable (Jitter under load)Ultra-low (Deterministic)Crucial for real-time edge AI.
ObservabilityBasic (Logs/Metrics)Deep (Hubble Flow Visualizer)Instant debugging of dropped packets.
\\n
\\n\\n

Does Your RK3588 Kernel Support eBPF?

\\n\\n

Before 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\\n

You 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

\\n\\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.

\\n\\n

How to Deploy the High-Performance K3s + Cilium Stack

\\n\\n

This 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\\n

Step 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\\n

Run 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 -

\\n\\n

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

\\n\\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 with kubectl access), install the Cilium CLI:\\n\\n

CILIUM_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

\\n\\n

Step 3: Deploy Cilium with Kube-Proxy Replacement

\\nNow we deploy Cilium. The critical part here is the kubeProxyReplacement setting. This tells Cilium to take over the duties of kube-proxy using eBPF.\\n\\n

Create a values.yaml for Cilium:\\n\n

\n
\n CODE\n
\n
CODE
\\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
\n
\n

\\n\\n

Install via Helm:\\nhelm install cilium cilium/cilium --version 1.14.x --namespace kube-system -f values.yaml

\\n\\n

Step 4: Verify the eBPF Data Path

\\nOnce the pods are running, use the Cilium CLI to verify that the kube-proxy replacement is active. This is the moment of truth.\\n\\n

cilium status --wait

\\n\\n

Look for the line: KubeProxyReplacement: Strict. This confirms that iptables is no longer handling your service routing. You are now running on pure eBPF.

\\n\\n

Benchmarking the 2.5GbE Performance Gain

\\n\\n

To truly appreciate what you’ve built, you need to see the numbers. Install iperf3 on two different pods located on two different RK3588 nodes.

\\n\\n

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\\n

With Cilium eBPF, run the same test:\\nkubectl exec -it pod-a -- iperf3 -s\\nkubectl exec -it pod-b -- iperf3 -c [pod-a-ip]

\\n\\n

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\\n

Visualizing 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\\n

To access it, run:\\ncilium hubble ui

\\n\\n

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\\n

Frequently Asked Questions

\\n\\n
\\n

Can I migrate an existing K3s cluster to Cilium?

\\n

Yes, 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.

\\n
\\n\\n
\\n

Does Cilium work on RK3588 boards with only 4GB of RAM?

\\n

It 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.

\\n
\\n\\n
\\n

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
\\n\\n\\n
\\nEdge Silicon Lab Embedded NPU & Edge Hardware Architecture Pillars:\\nExplore our companion engineering and field research guides:
\\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
\\n\\n\\n\\n\\n\\n\\n
\\nExplore Edge Kubernetes Clusters\\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
\\n\\n