Skip to content

Commit

Permalink
feat: enable eBPF-based masquerading and host routing
Browse files Browse the repository at this point in the history
This is a prerequisite for many of Cilium's [advanced tuning options](https://docs.cilium.io/en/stable/operations/performance/tuning/#ebpf-host-routing), and should also improve performance in general without sacrificing compatibility. The netkit device mode requires Linux 6.8, which Talos does not yet have, but I've added the option here for the future.

Signed-off-by: Dennis Marttinen <[email protected]>
  • Loading branch information
twelho committed Oct 10, 2024
1 parent e4583e3 commit 2a1f88a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def apply_configuration(node_set, configuration_file, global_patches):
cilium_opts = [
"ipam.mode=kubernetes",
"kubeProxyReplacement=true",
"bpf.masquerade=true", # eBPF-based masquerading
# "bpf.datapathMode=netkit", # netkit device mode, requires kernel 6.8 (not yet in Talos)
"securityContext.capabilities.ciliumAgent={CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,"
"SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}",
"securityContext.capabilities.cleanCiliumState={NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}",
Expand Down

0 comments on commit 2a1f88a

Please sign in to comment.