2016-12-09 18:44:52 +00:00
|
|
|
---
|
2021-10-05 19:56:58 +00:00
|
|
|
- name: wait for cilium
|
|
|
|
when:
|
|
|
|
- needs_cordoning|default(false)
|
|
|
|
- kube_network_plugin == 'cilium'
|
|
|
|
command: >
|
|
|
|
{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf
|
|
|
|
wait pod -n kube-system -l k8s-app=cilium
|
|
|
|
--field-selector 'spec.nodeName=={{ kube_override_hostname|default(inventory_hostname) }}'
|
|
|
|
--for=condition=Ready
|
|
|
|
--timeout={{ upgrade_post_cilium_wait_timeout }}
|
|
|
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
|
|
|
|
2016-12-09 18:44:52 +00:00
|
|
|
- name: Uncordon node
|
2021-09-23 17:19:13 +00:00
|
|
|
command: "{{ bin_dir }}/kubectl --kubeconfig {{ kube_config_dir }}/admin.conf uncordon {{ kube_override_hostname|default(inventory_hostname) }}"
|
2021-03-24 00:26:05 +00:00
|
|
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
2018-02-09 15:39:21 +00:00
|
|
|
when:
|
|
|
|
- needs_cordoning|default(false)
|