Skip to content

Commit

Permalink
fix NodeIp when ks-installer resync
Browse files Browse the repository at this point in the history
Signed-off-by: zhu733756 <[email protected]>
  • Loading branch information
zhu733756 committed Aug 16, 2021
1 parent 2f7e437 commit 09ea627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubeedge/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
dest: "{{ kubesphere_dir }}/"

- name: KubeEdge | Getting NodeIp
shell: "{{ bin_dir }}/kubectl get node -o wide | awk '{if(NR == 2){print $6}}'"
shell: "{{ bin_dir }}/kubectl get nodes -o jsonpath='{.items[0].status.addresses[0].address}' -l '!node-role.kubernetes.io/edge'"
register: ks_kubeedge_nodeIP

- name: KubeEdge | Creating manifests
Expand Down

0 comments on commit 09ea627

Please sign in to comment.