From eea7bb7692f2470ea111716eef92d15866c7cb45 Mon Sep 17 00:00:00 2001 From: Samuel Liu Date: Wed, 18 May 2022 00:52:27 +0800 Subject: [PATCH] only need run this once (#8833) calicoctl ipam xx calicoctl apply xx --- roles/network_plugin/calico/tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index 55c410875..164ae0e0e 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -489,7 +489,7 @@ - "{{ peers|selectattr('scope','undefined')|list|default([]) | union(peers|selectattr('scope','defined')|selectattr('scope','equalto', 'node')|list|default([])) }}" when: - peer_with_router|default(false) - - inventory_hostname in groups['k8s_cluster'] + - inventory_hostname == groups['kube_control_plane'][0] - name: Calico | Configure ipam strictaffinity command: @@ -500,4 +500,4 @@ delay: "{{ retry_stagger | random + 3 }}" when: - calico_ipam_strictaffinity is defined - - inventory_hostname in groups['k8s_cluster'] + - inventory_hostname == groups['kube_control_plane'][0]