From 5a5cf15c04eafb6f09598da2a58175b82650a497 Mon Sep 17 00:00:00 2001 From: Samina Fu Date: Wed, 17 Oct 2018 07:29:43 +0800 Subject: [PATCH] Add clear ipvs virtual server table when reset k8s (#3530) --- roles/reset/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index 1fff14a27..3f5f5e570 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -107,6 +107,11 @@ tags: - iptables +- name: Clear IPVS virtual server table + shell: "ipvsadm -C" + when: + - kube_proxy_mode == 'ipvs' + - name: reset | delete some files and directories file: path: "{{ item }}"