Kubernetes 遇到的問題


Kubernetes 遇到的問題

k8s 版本

k8s v1.13.5
docker 18.09.2

問題一

kubelet 報錯


May 22 10:14:42 test-ops-k8s-03 kubelet: E0522 10:14:42.873650   19795 kubelet_volumes.go:154] Orphaned pod "ed306153-6faf-11e9-9d2b-00163e00365f" found, but volume paths are still present on disk : There were a total of 1 errors similar to this. Turn up verbosity to see them.


#bash  delete_pod.sh
#!/bin/sh

orphanedPods=`cat /var/log/messages|grep 'Orphaned pod'|awk -F '"' '{print $2}'|uniq`;
orphanedPodsNum=`echo $orphanedPods|awk -F ' ' '{print NF}'`;
echo -e "orphanedPods: $orphanedPodsNum \n$orphanedPods";

for i in $orphanedPods
do
echo "Deleting Orphaned pod id: $i";
rm -rf /var/lib/kubelet/pods/$i;
done

問題二

helm 證書的方式安裝 kubeapps

#cd /root/.helm
#helm install --set tillerProxy.tls.ca="$(cat ca.pem)" --set tillerProxy.tls.key="$(cat key.pem)" --set tillerProxy.tls.cert="$(cat cert.pem)" bitnami/kubeapps --namespace kubeapps --name kubeapps


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM