k8s destroy
This commit is contained in:
parent
f230db3739
commit
bcae7303ab
@ -11,20 +11,31 @@
|
||||
with_items:
|
||||
- /etc/cni
|
||||
- /etc/kubernetes
|
||||
- /var/lib/dockershim
|
||||
- /var/lib/etcd
|
||||
- /var/lib/kubelet
|
||||
- /var/run/kubernetes
|
||||
|
||||
- name: purge iptables
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
iptables -F && iptables -X
|
||||
iptables -t nat -F && iptables -t nat -X
|
||||
iptables -t raw -F && iptables -t raw -X
|
||||
iptables -t mangle -F && iptables -t mangle -X
|
||||
- name: purge iptables rules
|
||||
ansible.builtin.iptables:
|
||||
flush: true
|
||||
table: "{{ item }}"
|
||||
with_items:
|
||||
- filter
|
||||
- raw
|
||||
- nat
|
||||
- mangle
|
||||
|
||||
- name: purge iptables chains
|
||||
ansible.builtin.iptables:
|
||||
table: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- filter
|
||||
- raw
|
||||
- nat
|
||||
- mangle
|
||||
|
||||
- name: restart the containerd service
|
||||
ansible.builtin.service:
|
||||
name: containerd
|
||||
state: restarted
|
||||
state: reloaded
|
Loading…
Reference in New Issue
Block a user