stardust-shadow

导航

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
 

posted on 2025-07-15 10:24  阡年  阅读(10)  评论(0)    收藏  举报