cb54eb40ce
* Add kubectl variable * Replace kubectl usage by kubectl variable in roles * Remove redundant --kubeconfig on kubectl usage * Replace unecessary shell usage with command
18 lines
633 B
YAML
18 lines
633 B
YAML
---
|
|
- name: wait for cilium
|
|
when:
|
|
- needs_cordoning|default(false)
|
|
- kube_network_plugin == 'cilium'
|
|
command: >
|
|
{{ kubectl }}
|
|
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] }}"
|
|
|
|
- name: Uncordon node
|
|
command: "{{ kubectl }} uncordon {{ kube_override_hostname|default(inventory_hostname) }}"
|
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
|
when:
|
|
- needs_cordoning|default(false)
|