Skip to content
Snippets Groups Projects
Commit 82b247d1 authored by Matthew Mosesohn's avatar Matthew Mosesohn
Browse files

Adapt advanced network checker for scale

Skip nodes not in ansible play (via --limit)
parent a21eb036
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
run_once: true run_once: true
delegate_to: "{{groups['kube-master'][0]}}" delegate_to: "{{groups['kube-master'][0]}}"
register: nca_pod register: nca_pod
until: "{{ nca_pod.stdout_lines|length }} >= {{ groups['kube-node']|length * 2 }}" until: "{{ nca_pod.stdout_lines|length }} >= {{ groups['kube-node']|intersect(play_hosts)|length * 2 }}"
retries: 3 retries: 3
delay: 10 delay: 10
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
delay: "{{ agent_report_interval }}" delay: "{{ agent_report_interval }}"
until: "{{ agents.content|length > 0 and until: "{{ agents.content|length > 0 and
agents.content[0] == '{' and agents.content[0] == '{' and
agents.content|from_json|length >= groups['kube-node']|length * 2 }}" agents.content|from_json|length >= groups['kube-node']|intersect(play_hosts)|length * 2 }}"
failed_when: false failed_when: false
no_log: true no_log: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment