From f2635776cdf5b8b74315516d3b0b68236cdc044c Mon Sep 17 00:00:00 2001 From: Joost Cassee Date: Wed, 28 Nov 2018 09:55:01 +0100 Subject: [PATCH] Make Calico Felix log level configurable (#3781) --- roles/network_plugin/calico/defaults/main.yml | 3 +++ roles/network_plugin/calico/templates/calico-node.yml.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/network_plugin/calico/defaults/main.yml b/roles/network_plugin/calico/defaults/main.yml index a2b9c852f..9883ad1fd 100644 --- a/roles/network_plugin/calico/defaults/main.yml +++ b/roles/network_plugin/calico/defaults/main.yml @@ -45,6 +45,9 @@ calico_felix_prometheusprocessmetricsenabled: "true" calico_upgrade_enabled: true calico_upgrade_version: v1.0.5 +# Set the agent log level. Can be debug, warning, info or fatal +calico_loglevel: info + # Should calico ignore kernel's RPF check setting, # see https://github.com/projectcalico/felix/blob/ab8799eaea66627e5db7717e62fca61fd9c08646/python/calico/felix/config.py#L198 calico_node_ignorelooserpf: false diff --git a/roles/network_plugin/calico/templates/calico-node.yml.j2 b/roles/network_plugin/calico/templates/calico-node.yml.j2 index 4ce24a476..2090372fb 100644 --- a/roles/network_plugin/calico/templates/calico-node.yml.j2 +++ b/roles/network_plugin/calico/templates/calico-node.yml.j2 @@ -88,7 +88,7 @@ spec: value: "false" # Set Felix logging to "info" - name: FELIX_LOGSEVERITYSCREEN - value: "info" + value: "{{ calico_loglevel }}" # Set MTU for tunnel device used if ipip is enabled {% if calico_mtu is defined %} - name: FELIX_IPINIPMTU