k8s pod一直处于pending

 

 kubectl get pods
NAME          READY   STATUS    RESTARTS   AGE
sa-frontend   0/1     Pending   0          35m
zsh:kubectl describe pod sa-frontend
Name:         sa-frontend
Namespace:    default
Priority:     0
Node:         <none>
Labels:       app=sa-frontend
Annotations:  <none>
Status:       Pending
IP:
IPs:          <none>
Containers:
  sa-frontend:
    Image:        ccfco/sentiment-analysis-frontend
    Port:         80/TCP
    Host Port:    0/TCP
    Environment:  <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-qrfdx (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  kube-api-access-qrfdx:
    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:
  Type     Reason            Age                   From               Message
  ----     ------            ----                  ----               -------
  Warning  FailedScheduling  2m26s (x37 over 38m)  default-scheduler  0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate.

修改yaml文件

 

posted @ 2021-07-16 11:03  小筱痕  阅读(2129)  评论(0编辑  收藏  举报