summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/prune/tasks/main.yml
blob: 71ed0d0481c3dbf1eea0e6b42427a6397bfe32c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
---
- name: remove nodes from api server
  run_once: true
  delegate_to: "{{ groups['_kubernetes_primary_master_'] | first }}"
  loop: "{{ groups['_kubernetes_nodes_prune_'] | default([]) }}"
  command: "kubectl delete node {{ item }}"

- name: prune network plugin
  include_tasks: "net_{{ kubernetes_network_plugin }}.yml"