You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
758 B

  1. ---
  2. - name: Cilium | Start Resources
  3. kube:
  4. name: "{{item.item.name}}"
  5. namespace: "kube-system"
  6. kubectl: "{{bin_dir}}/kubectl"
  7. resource: "{{item.item.type}}"
  8. filename: "{{kube_config_dir}}/{{item.item.file}}"
  9. state: "latest"
  10. with_items: "{{ cilium_node_manifests.results }}"
  11. when: inventory_hostname == groups['kube-master'][0] and not item is skipped
  12. - name: Cilium | Wait for pods to run
  13. command: "{{bin_dir}}/kubectl -n kube-system get pods -l k8s-app=cilium -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'"
  14. register: pods_not_ready
  15. until: pods_not_ready.stdout.find("cilium")==-1
  16. retries: 30
  17. delay: 10
  18. ignore_errors: yes
  19. when: inventory_hostname == groups['kube-master'][0]