diff --git a/roles/network_plugin/cilium/defaults/main.yml b/roles/network_plugin/cilium/defaults/main.yml index 9ed4b2bd4..70696cc6b 100755 --- a/roles/network_plugin/cilium/defaults/main.yml +++ b/roles/network_plugin/cilium/defaults/main.yml @@ -17,6 +17,8 @@ cilium_cpu_limit: 500m cilium_memory_requests: 64M cilium_cpu_requests: 100m +# Overlay Network Mode +cilium_tunnel_mode: vxlan # Optional features cilium_enable_prometheus: false # Enable if you want to make use of hostPort mappings diff --git a/roles/network_plugin/cilium/templates/cilium-config.yml.j2 b/roles/network_plugin/cilium/templates/cilium-config.yml.j2 index 21a803cd4..7a343d9fe 100644 --- a/roles/network_plugin/cilium/templates/cilium-config.yml.j2 +++ b/roles/network_plugin/cilium/templates/cilium-config.yml.j2 @@ -104,7 +104,7 @@ data: # - disabled # - vxlan (default) # - geneve - tunnel: "vxlan" + tunnel: "{{ cilium_tunnel_mode }}" # Name of the cluster. Only relevant when building a mesh of clusters. cluster-name: default