Added retries in pre-upgrade.yml and retries while applying kube-dns.yml (#2553)

* Added retries in pre-upgrade.yml and retries while applying kube-dns.yml

* Removed trailing spaces
This commit is contained in:
Kuldip Madnani 2018-03-29 11:37:32 -05:00 committed by Chad Swenson
parent 270d21f5c1
commit daeeae1a91
2 changed files with 8 additions and 1 deletions

View file

@ -50,6 +50,10 @@
- dns_mode != 'none' - dns_mode != 'none'
- inventory_hostname == groups['kube-master'][0] - inventory_hostname == groups['kube-master'][0]
- not item|skipped - not item|skipped
register: resource_result
until: resource_result|succeeded
retries: 4
delay: 5
tags: tags:
- dnsmasq - dnsmasq

View file

@ -30,4 +30,7 @@
with_items: with_items:
- ["kube-apiserver", "kube-controller-manager", "kube-scheduler"] - ["kube-apiserver", "kube-controller-manager", "kube-scheduler"]
when: kube_apiserver_manifest_replaced.changed when: kube_apiserver_manifest_replaced.changed
run_once: true register: remove_master_container
retries: 4
until: remove_master_container.rc == 0
delay: 5