|
@ -19,10 +19,10 @@ |
|
|
{"apiVersion": "projectcalico.org/v3", |
|
|
{"apiVersion": "projectcalico.org/v3", |
|
|
"kind": "BGPPeer", |
|
|
"kind": "BGPPeer", |
|
|
"metadata": { |
|
|
"metadata": { |
|
|
"name": "{{ calcio_rr_id }}-to-node" |
|
|
|
|
|
|
|
|
"name": "{{ calico_rr_id }}-to-node" |
|
|
}, |
|
|
}, |
|
|
"spec": { |
|
|
"spec": { |
|
|
"peerSelector": "calico-rr-id == '{{ calcio_rr_id }}'", |
|
|
|
|
|
|
|
|
"peerSelector": "calico-rr-id == '{{ calico_rr_id }}'", |
|
|
"nodeSelector": "calico-group-id == '{{ calico_group_id }}'" |
|
|
"nodeSelector": "calico-group-id == '{{ calico_group_id }}'" |
|
|
}} |
|
|
}} |
|
|
register: output |
|
|
register: output |
|
@ -30,7 +30,7 @@ |
|
|
until: output.rc == 0 |
|
|
until: output.rc == 0 |
|
|
delay: "{{ retry_stagger | random + 3 }}" |
|
|
delay: "{{ retry_stagger | random + 3 }}" |
|
|
when: |
|
|
when: |
|
|
- calcio_rr_id is defined |
|
|
|
|
|
|
|
|
- calico_rr_id is defined |
|
|
- calico_group_id is defined |
|
|
- calico_group_id is defined |
|
|
- inventory_hostname in groups['calico_rr'] |
|
|
- inventory_hostname in groups['calico_rr'] |
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ |
|
|
- "{{ groups['calico_rr'] | default([]) }}" |
|
|
- "{{ groups['calico_rr'] | default([]) }}" |
|
|
when: |
|
|
when: |
|
|
- inventory_hostname == groups['kube_control_plane'][0] |
|
|
- inventory_hostname == groups['kube_control_plane'][0] |
|
|
- calcio_rr_id is not defined or calico_group_id is not defined |
|
|
|
|
|
|
|
|
- calico_rr_id is not defined or calico_group_id is not defined |
|
|
|
|
|
|
|
|
- name: Calico | Configure route reflectors to peer with each other |
|
|
- name: Calico | Configure route reflectors to peer with each other |
|
|
command: |
|
|
command: |
|
|