我刚刚在Windows 10上使用minikube(0.27)启动了一个新的Kubernetes 1.8.0环境。
我按照这个步骤操作但是没有用: https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
当我列出pods时,这就是结果:
C:\WINDOWS\system32>kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system etcd-minikube 1/1 Running 0 23m
kube-system heapster-69b5d4974d-s9vrf 1/1 Running 0 5m
kube-system kube-addon-manager-minikube 1/1 Running 0 23m
kube-system kube-apiserver-minikube 1/1 Running 0 23m
kube-system kube-controller-manager-minikube 1/1 Running 0 23m
kube-system kube-dns-545bc4bfd4-xkt7l 3/3 Running 3 1h
kube-system kube-proxy-7jnk6 1/1 Running 0 23m
kube-system kube-scheduler-minikube 1/1 Running 0 23m
kube-system kubernetes-dashboard-5569448c6d-8zqnc 1/1 Running 2 52m
kube-system kubernetes-dashboard-869db7f6b4-ddlmq 0/1 CrashLoopBackOff 19 51m
kube-system monitoring-influxdb-78d4c6f5b6-b66m9 1/1 Running 0 4m
kube-system storage-provisioner 1/1 Running 2 1h
如您所见,我现在有2个kubernets-dashboard pod,其中一个正在运行,另一个正在运行CrashLookBackOff。
当我尝试运行minikube仪表板时,结果如下:
“等待,服务端点尚未准备就绪......”
我试图删除kubernetes-dashboard-869db7f6b4-ddlmq pod:
kubectl delete pod kubernetes-dashboard-869db7f6b4-ddlmq
结果如下:
“来自服务器的错误(NotFound):pods”kubernetes-dashboard-869db7f6b4-ddlmq“未找到”
答案 0 :(得分:1)
“来自服务器的错误(NotFound):pods”kubernetes-dashboard-869db7f6b4-ddlmq“未找到”
由于缺少命名空间(添加-n kube-system
),您无法删除容器。如果没有应用修改,它应该是1个仪表板窗格。如果在删除异常窗格后仍然无法运行minikube仪表板,则应提供更多日志。