Browse Source

Merge pull request #1309 from jhunthrop/router-peering

adding --skip-exists flag for peer_with_router
pull/1311/head
Spencer Smith 7 years ago
committed by GitHub
parent
commit
6ba926381b
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/network_plugin/calico/tasks/main.yml

2
roles/network_plugin/calico/tasks/main.yml

@ -219,7 +219,7 @@
"apiVersion": "v1",
"metadata": {"node": "{{ inventory_hostname }}", "scope": "node", "peerIP": "{{ item.router_id }}"}
}'
| {{ bin_dir }}/calicoctl create -f -
| {{ bin_dir }}/calicoctl create --skip-exists -f -
with_items: "{{ peers|default([]) }}"
when: (not legacy_calicoctl and
peer_with_router|default(false) and inventory_hostname in groups['k8s-cluster'])

Loading…
Cancel
Save