mirror of https://github.com/easzlab/kubeasz.git
fix清理集群时删除.kube目录
parent
026674a799
commit
af17d932d9
|
@ -35,7 +35,9 @@
|
||||||
- "/etc/systemd/system/kube-scheduler.service"
|
- "/etc/systemd/system/kube-scheduler.service"
|
||||||
- "/etc/kubernetes/"
|
- "/etc/kubernetes/"
|
||||||
|
|
||||||
- hosts: kube-cluster
|
- hosts:
|
||||||
|
- kube-cluster
|
||||||
|
- deploy
|
||||||
tasks:
|
tasks:
|
||||||
- name: stop calico-node service
|
- name: stop calico-node service
|
||||||
shell: "systemctl stop calico-node docker"
|
shell: "systemctl stop calico-node docker"
|
||||||
|
@ -53,6 +55,7 @@
|
||||||
file: name={{ item }} state=absent
|
file: name={{ item }} state=absent
|
||||||
with_items:
|
with_items:
|
||||||
- "/etc/cni/"
|
- "/etc/cni/"
|
||||||
|
- "/root/.kube/"
|
||||||
- "/etc/calico/"
|
- "/etc/calico/"
|
||||||
- "/var/run/calico/"
|
- "/var/run/calico/"
|
||||||
- "/var/log/calico/"
|
- "/var/log/calico/"
|
||||||
|
|
Loading…
Reference in New Issue