Skip to content

Commit

Permalink
fix: #1308 calico rr setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Aug 23, 2023
1 parent ead48d8 commit 56f0939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/calico/tasks/calico-rr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

- name: node label
shell: 'for ip in {{ NODE_IPS }};do \
{{ base_dir }}/bin/kubectl label node "$ip" route-reflector=true --overwrite;
node_name=$({{ bin_dir }}/calicoctl get node -owide|grep " $ip/"|cut -d" " -f1) && \
{{ base_dir }}/bin/kubectl label node "$node_name" route-reflector=true --overwrite;
done'
connection: local

Expand Down

0 comments on commit 56f0939

Please sign in to comment.