Pod在Kubernetes中总是挂起



Pod状态始终为pending。我在本地使用Kind来学习Kubernetes,并试图上升一个Pod。

❯ kubectl get pods             
NAME       READY   STATUS    RESTARTS   AGE
goserver   0/1     Pending   0          12m

来自description的事件为none。

❯ kubectl describe pod goserver
Name:         goserver
Namespace:    default
Priority:     0
Node:         <none>
Labels:       app=goserver
Annotations:  <none>
Status:       Pending
IP:           
IPs:          <none>
Containers:
goserver:
Image:        allansduarte/hellogo
Port:         <none>
Host Port:    <none>
Environment:  <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-rjkmz (ro)
Volumes:
kube-api-access-rjkmz:
Type:                    Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds:  3607
ConfigMapName:           kube-root-ca.crt
ConfigMapOptional:       <nil>
DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>

没有日志。

❯ kubectl logs goserver

Kubernetes系统日志。

❯ kubectl get pod -n kube-system
NAME                                              READY   STATUS    RESTARTS   AGE
coredns-558bd4d5db-62bbj                          1/1     Running   5          10d
coredns-558bd4d5db-zk9rw                          1/1     Running   5          10d
etcd-fullcycle-control-plane                      1/1     Running   0          95m
kindnet-66c9q                                     1/1     Running   5          10d
kindnet-6wfzg                                     1/1     Running   5          10d
kindnet-sklzj                                     1/1     Running   5          10d
kindnet-xjh4p                                     1/1     Running   5          10d
kube-apiserver-fullcycle-control-plane            1/1     Running   0          95m
kube-controller-manager-fullcycle-control-plane   1/1     Running   8          10d
kube-proxy-cdzrj                                  1/1     Running   5          10d
kube-proxy-jphsn                                  1/1     Running   5          10d
kube-proxy-mhdtt                                  1/1     Running   5          10d
kube-proxy-x8jbm                                  1/1     Running   5          10d
kube-scheduler-fullcycle-control-plane            1/1     Running   8          10d

对继续调查有什么建议吗?

我最近切换到Mac OS Big Sur, Kubernetes和Docker没有启动。然后,我只需重新安装Docker和Kubernetes。重置Kubernetes,清除/清除数据或重置为出厂设置的选项不起作用。

相关内容

  • 没有找到相关文章

最新更新