fix: #1308 calico rr setup

pull/1318/head
gjmzj 2023-08-23 21:00:51 +08:00
parent ead48d8ea2
commit 56f0939974
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@
- name: node label - name: node label
shell: 'for ip in {{ NODE_IPS }};do \ 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' done'
connection: local connection: local