mirror of https://github.com/easzlab/kubeasz.git
fix: #1308 calico rr setup
parent
ead48d8ea2
commit
56f0939974
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue