kubeless/withdraw/node_reset.sh

8 lines
239 B
Bash

#!/bin/bash
kubeadm reset --force
test -f /etc/default/kubelet && rm /etc/default/kubelet
iptables -F && iptables -t nat -F && iptables -t mangle -F && \
iptables -X && iptables -t nat -X && iptables -t mangle -X
systemctl restart docker