我尝试使用文档在Ubuntu虚拟机中安装和设置Kubernetes。我已经完成了3/4的步骤,现在kube-dns容器处于挂起状态。
我该如何查找问题?以下是使用kubectl get pods --namespace=kube-system
和kubectl describe pod <pod name>
得到的结果:
# kubectl get pods --namespace=kube-system
NAME READY STATUS RESTARTS AGE
dummy-2088944543-jk2t2 1/1 Running 0 3h
etcd-ubuntu 1/1 Running 0 3h
kube-apiserver-ubuntu 1/1 Running 0 3h
kube-controller-manager-ubuntu 1/1 Running 0 3h
kube-discovery-1769846148-h88v4 1/1 Running 0 3h
kube-dns-2924299975-dfp17 0/4 Pending 0 3h
kube-proxy-zdcxw 1/1 Running 0 3h
kube-scheduler-ubuntu 1/1 Running 0 3h
weave-net-xwfhj 2/2 Running 0 2h
# kubectl describe pod kube-dns-2924299975-dfp17
Error from server (NotFound): pods "kube-dns-2924299975-dfp17" not found
kubectl describe pod <pod-name>
的输出吗? - Antoine Cotten--namespace=kube-system
,因此出现了错误。您能再更新一次问题吗? - Antoine Cotten