From 0847e893ca5848835a3d7d3673f777bc8f1eb05c Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 31 Aug 2016 12:53:33 +0300 Subject: [PATCH] Disable calicoctl from creating a default pool Sometimes invoking calicoctl to create a pool also creates a default pool, which causes errors in deploy. --- roles/network_plugin/calico/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/network_plugin/calico/tasks/main.yml b/roles/network_plugin/calico/tasks/main.yml index c421300ee..abe0f690d 100644 --- a/roles/network_plugin/calico/tasks/main.yml +++ b/roles/network_plugin/calico/tasks/main.yml @@ -73,6 +73,8 @@ - name: Calico | Configure calico network pool {{ pool_task_name|default('') }} command: "{{ bin_dir}}/calicoctl pool add {{ kube_pods_subnet }} {{ ipip_arg|default('') }} {{ nat_arg|default('') }}" + environment: + NO_DEFAULT_POOLS: true run_once: true when: calico_conf.status == 404