Browse Source

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
pull/2555/head
Kuldip Madnani 6 years ago
committed by Chad Swenson
parent
commit
daeeae1a91
2 changed files with 8 additions and 1 deletions
  1. 4
      roles/kubernetes-apps/ansible/tasks/main.yml
  2. 5
      roles/kubernetes/master/tasks/pre-upgrade.yml

4
roles/kubernetes-apps/ansible/tasks/main.yml

@ -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

5
roles/kubernetes/master/tasks/pre-upgrade.yml

@ -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
Loading…
Cancel
Save