From 076f254a67b199b227b4a1cec400e202c3237acc Mon Sep 17 00:00:00 2001 From: Junho Suh Date: Mon, 11 Nov 2019 20:19:42 +0900 Subject: [PATCH] Add cilium_tunnel_mode variable to the cilium config (#5295) --- roles/network_plugin/cilium/defaults/main.yml | 2 ++ roles/network_plugin/cilium/templates/cilium-config.yml.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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