- 電腦在休眠後打開發現Rancher網路出問題,試了各種方法都還是會失敗,而且還是機率性的,所幸就把cluster砍掉重建
問題總是一個接著一個來,之後重起的node都無法正常開啟,總是回應
1
Runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
情況在把docker完整的初始化後便可改善
1
2
3
4
5
6
7
8#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done