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

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help