Enable HA deploy of kubeadm (#1658)

* Enable HA deploy of kubeadm

* raise delay to 60s for starting gce hosts
This commit is contained in:
Matthew Mosesohn
2017-09-15 22:28:15 +01:00
committed by GitHub
parent b294db5aed
commit 8e731337ba
10 changed files with 88 additions and 15 deletions

View File

@@ -35,7 +35,7 @@
register: gce
- name: Add instances to host group
add_host: hostname={{item.name}} ansible_host={{item.public_ip}} groupname="waitfor_hosts"
add_host: hostname={{item.public_ip}} groupname="waitfor_hosts"
with_items: '{{gce.instance_data}}'
- name: Template the inventory
@@ -61,4 +61,4 @@
gather_facts: false
tasks:
- name: Wait for SSH to come up.
local_action: wait_for host={{inventory_hostname}} port=22 delay=5 timeout=240 state=started
local_action: wait_for host={{inventory_hostname}} port=22 delay=60 timeout=240 state=started