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
$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