fix清理集群时删除.kube目录

pull/275/head
jmgao 2017-12-03 22:32:53 +08:00
parent 026674a799
commit af17d932d9
1 changed files with 4 additions and 1 deletions

View File

@ -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/"