23ae6027ab
* Remove support for calico below version v3.0.0 Change-Id: If8fe3036b9e054901a8b2c48516eff1e1271970f * Update main.yml * fixup node peering Change-Id: Ifac4d363deba826f0c80e390ce80a28df9827323 * fixups Change-Id: Ic35417330af6741962003b3930604393c90804d1 * fixups Change-Id: I0ea82d634bb0c81d9b7dc50569c70988bc8d3a3b
9 lines
391 B
YAML
9 lines
391 B
YAML
---
|
|
- name: Calico | Get kubelet hostname
|
|
shell: >-
|
|
{{ bin_dir }}/kubectl get node -o custom-columns='NAME:.metadata.name,INTERNAL-IP:.status.addresses[?(@.type=="InternalIP")].address'
|
|
| egrep "{{ ansible_all_ipv4_addresses | join('$|') }}$" | cut -d" " -f1
|
|
register: calico_kubelet_name
|
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
|
when:
|
|
- "cloud_provider is defined"
|