knative-report/withdraw/node_reset.sh
2019-10-02 18:27:25 +02:00

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