use-buildset-registry: wait for kubernetes service to be available

When kubernetes services exists, this change waits for the api to be
available.

Change-Id: Id615c4d1cc296d73b884104443d9439cc608b84a
This commit is contained in:
Tristan Cacqueray 2020-04-13 19:26:20 +00:00
parent 25bcca1083
commit 7413c0577a

View File

@ -117,3 +117,11 @@
name: crio name: crio
state: restarted state: restarted
become: true become: true
- name: Wait for kubernetes connection to come back
command: timeout 10s kubectl get pods
when: kubelet_config.stat.exists or crio_path.stat.exists
register: _api_ready
until: _api_ready.rc == 0
retries: 6
delay: 10