Skip to content

Instantly share code, notes, and snippets.

@ahawkins
Created February 13, 2017 14:01
Show Gist options
  • Save ahawkins/1cf7ef68dac523b370c31de61577bbf8 to your computer and use it in GitHub Desktop.
Save ahawkins/1cf7ef68dac523b370c31de61577bbf8 to your computer and use it in GitHub Desktop.
- name: Check test pods
shell: >
kops export kubecfg {{ item[0].name }}
&& kubectl get pod image-pull-test -o yaml --template {%- raw -%}'{{.status.phase}}'{%- endraw -%} --namespace {{ item[1] }}
environment:
KOPS_STATE_STORE: "s3://{{ kops_prereqs.stack_outputs.Bucket }}"
with_subelements:
- "{{ production_k8s_deployments }}"
- namespaces
until: result.stdout.lower() == 'Running'
retries: 5
delay: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment