From 133a7a0e1be90fd727d716cf153ffec68ba98b5a Mon Sep 17 00:00:00 2001 From: lou-lan Date: Fri, 2 Sep 2022 19:58:05 +0800 Subject: [PATCH] Add featureDetectOverride configration of calico (#9249) --- roles/network_plugin/calico/defaults/main.yml | 4 ++++ roles/network_plugin/calico/tasks/install.yml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/network_plugin/calico/defaults/main.yml b/roles/network_plugin/calico/defaults/main.yml index 2f1c42e0b..67718df27 100644 --- a/roles/network_plugin/calico/defaults/main.yml +++ b/roles/network_plugin/calico/defaults/main.yml @@ -155,3 +155,7 @@ calico_ipam_maxblocksperhost: 0 # Calico apiserver (only with kdd) calico_apiserver_enabled: false + +# Calico feature detect override, set "ChecksumOffloadBroken=true" to +# solve the https://github.com/projectcalico/calico/issues/3145 +calico_feature_detect_override: "" diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index 48b4a25bc..040519918 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -187,7 +187,8 @@ "bpfExternalServiceMode": "{{ calico_bpf_service_mode }}", "wireguardEnabled": {{ calico_wireguard_enabled | bool }}, "logSeverityScreen": "{{ calico_felix_log_severity_screen }}", - "vxlanEnabled": {{ calico_vxlan_mode != 'Never' }} + "vxlanEnabled": {{ calico_vxlan_mode != 'Never' }}, + "featureDetectOverride": "{{ calico_feature_detect_override }}" } }