Skip to content
Snippets Groups Projects
Commit a3fff1e4 authored by bobahspb's avatar bobahspb Committed by Kubernetes Prow Robot
Browse files

cordon all deleted nodes before drain (#4756)

Kubespray waits exit of every drain before run other one.
Running drain every after each other seems better than parallel, because we should check resources availability every time.
But, this way, we have one additional problem: possible restart pods on the nodes that are killed little bit later.
Fast cordon before heavy drain seems like an easy solution.
parent 4bc20492
Branches
Tags
No related merge requests found
---
- name: cordon-node | Mark all nodes as unschedulable before drain
command: >-
{{ bin_dir }}/kubectl cordon {{ item }}
with_items:
- "{{ node.split(',') | default(groups['kube-node']) }}"
failed_when: false
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes
- name: remove-node | Drain node except daemonsets resource
command: >-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment