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.

32 lines
992 B

  1. ---
  2. - name: Wait for cilium
  3. when:
  4. - needs_cordoning | default(false)
  5. - kube_network_plugin == 'cilium'
  6. command: >
  7. {{ kubectl }}
  8. wait pod -n kube-system -l k8s-app=cilium
  9. --field-selector 'spec.nodeName=={{ kube_override_hostname | default(inventory_hostname) }}'
  10. --for=condition=Ready
  11. --timeout={{ upgrade_post_cilium_wait_timeout }}
  12. delegate_to: "{{ groups['kube_control_plane'][0] }}"
  13. - name: Confirm node uncordon
  14. pause:
  15. echo: yes
  16. prompt: "Ready to uncordon node?"
  17. when:
  18. - upgrade_node_post_upgrade_confirm
  19. - name: Wait before uncordoning node
  20. pause:
  21. seconds: "{{ upgrade_node_post_upgrade_pause_seconds }}"
  22. when:
  23. - not upgrade_node_post_upgrade_confirm
  24. - upgrade_node_post_upgrade_pause_seconds != 0
  25. - name: Uncordon node
  26. command: "{{ kubectl }} uncordon {{ kube_override_hostname | default(inventory_hostname) }}"
  27. delegate_to: "{{ groups['kube_control_plane'][0] }}"
  28. when:
  29. - needs_cordoning | default(false)