Dual-NIC Kubernetes Nodes With systemd-networkd and K3s: Correct Routing for Internal and Public…
blog.devops.dev·7h
🏠Homelab Orchestration
Preview
Report Post

3 min read4 days ago

Running Kubernetes on nodes with two network interfaces often leads to subtle routing issues — especially when the OS is a minimal cloud image and K3s picks the wrong interface for the cluster network. This article documents the exact configuration that reliably separates internal cluster traffic from public internet traffic using systemd-networkd on Debian 12.

This guide applies to:

  • Single-NIC nodes (172.20.1.x)
  • Dual-NIC nodes (172.20.1.x internal + 192.168.6.x public)
  • K3s clusters using Flannel

Press enter or click to view image in full size

🎯 Goals

We want:

  1. Internal LAN traffic (172.20.1.0/24, 172.20.0.0/16) → use gateway 172.20.1.254
  2. Kubernetes pod & cluster CIDR traffic (10.0.0.0/…

Similar Posts

Loading similar posts...