K8s init 重置
#初始化失败,重置
kubeadm reset
rm -rf /etc/kubernetes /var/lib/kubelet /var/lib/cni /etc/cni/net.d
rm -rf /etc/cni/net.d $HOME/.kube/config
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
#Node 重置
kubeadm reset -f
rm -rf /etc/kubernetes /var/lib/kubelet /var/lib/cni /etc/cni/net.d
sed -i 's/cgroupDriver: cgroupfs/cgroupDriver: systemd/' /var/lib/kubelet/config.yaml
systemctl daemon-reload
浙公网安备 33010602011771号