kubespray/roles/remove-node/post-remove/tasks/main.yml

10 lines
247 B
YAML
Raw Normal View History

---
- name: Delete node
command: "{{ bin_dir }}/kubectl delete node {{ item }}"
with_items:
- "{{ node.split(',') | default(groups['kube-node']) }}"
2018-06-23 14:40:59 +08:00
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes