k8s: check for nodes to be ready in playbooks
We don't need to check if the cluster is ready in CI, it should happen inside the library. Change-Id: I6d600d49bde919852a8161b5409ad8ea9efa0147
This commit is contained in:
parent
e7e6cd11ba
commit
0e75d72e3e
@ -169,3 +169,11 @@
|
||||
changed_when: false
|
||||
shell: |
|
||||
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
||||
|
||||
- name: Wait for all nodes to get ready
|
||||
run_once: true
|
||||
shell: kubectl get nodes
|
||||
register: _kubectl_get_nodes
|
||||
retries: 30
|
||||
delay: 3
|
||||
until: '"NotReady" not in _kubectl_get_nodes.stdout'
|
@ -23,13 +23,6 @@
|
||||
|
||||
- hosts: masters[0]
|
||||
tasks:
|
||||
- name: Wait for all nodes to get ready
|
||||
shell: kubectl get nodes
|
||||
register: _kubectl_get_nodes
|
||||
retries: 30
|
||||
delay: 3
|
||||
until: '"NotReady" not in _kubectl_get_nodes.stdout'
|
||||
|
||||
- name: Download sonobuoy
|
||||
become: true
|
||||
unarchive:
|
||||
|
Loading…
Reference in New Issue
Block a user