Skip to main content

Can we enable Cilium WireGuard node-to-node encryption?

Syself support For release

Yes. You enable Cilium WireGuard encryption with a CiliumNodeConfig resource that sets enable-wireguard: "true", then you restart the Cilium agents.

WireGuard encrypts pod traffic that travels between nodes. Your applications do not change. Syself Linux ships the WireGuard kernel module, and the host firewall already allows the WireGuard port between the nodes of a cluster, so you install nothing and change no firewall rule.

Use the CiliumNodeConfig and leave the cilium-config ConfigMap as it is. Syself Autopilot manages that ConfigMap and applies it again with every release. The CiliumNodeConfig is your own resource, so WireGuard stays on across updates and upgrades.

Leave Cilium's encrypt-node option unset. It extends WireGuard to the traffic of the nodes themselves and is not part of the tested configuration. If you have a use case that needs it, reach out to us at support@syself.com⁠.

The restart is rolling, so the agents do not all restart at once. Still, do it at a quiet time, and check afterwards that the traffic is encrypted. The manifest and the checks are in Encrypt pod traffic with WireGuard.

WireGuard is one of the Cilium settings the docs describe. Please stay within these. Other changes to the bundled Cilium configuration can break the cluster and are not supported. Before you try anything else, read Can we change the bundled Cilium configuration?

Still stuck?

Prepare your case, then email us.