kubespray/roles/upgrade/post-upgrade/tasks/main.yml

19 lines
633 B
YAML
Raw Normal View History

2016-12-10 02:44:52 +08:00
---
- 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] }}"
2016-12-10 02:44:52 +08:00
- name: Uncordon node
command: "{{ kubectl }} uncordon {{ kube_override_hostname|default(inventory_hostname) }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
2018-02-09 23:39:21 +08:00
when:
- needs_cordoning|default(false)