kubeless/withdraw/node_reset.sh

8 lines
225 B
Bash
Raw Normal View History

2019-03-05 18:33:23 +01:00
#!/bin/bash
kubeadm reset --force
docker system prune -a
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X