请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

coredns一直处于Pending状态

kubectl get pod -n kube-system

https://img1.sycdn.imooc.com/szimg/6765397509a7e0ce07120248.jpg

kubectl describe pod coredns-6d56c8448f-np2jk -n kube-system

https://img1.sycdn.imooc.com/szimg/676539c6094aa7c317740102.jpg

正在回答 回答被采纳积分+3

插入代码

1回答

提问者 weixin_精慕门0158692 2024-12-20 17:35:19

详细日志:

[root@master ~]# kubectl describe pod coredns-6d56c8448f-np2jk -n kube-system

Name:                 coredns-6d56c8448f-np2jk

Namespace:            kube-system

Priority:             2000000000

Priority Class Name:  system-cluster-critical

Node:                 <none>

Labels:               k8s-app=kube-dns

                      pod-template-hash=6d56c8448f

Annotations:          <none>

Status:               Pending

IP:                   

IPs:                  <none>

Controlled By:        ReplicaSet/coredns-6d56c8448f

Containers:

  coredns:

    Image:       registry.aliyuncs.com/google_containers/coredns:1.7.0

    Ports:       53/UDP, 53/TCP, 9153/TCP

    Host Ports:  0/UDP, 0/TCP, 0/TCP

    Args:

      -conf

      /etc/coredns/Corefile

    Limits:

      memory:  170Mi

    Requests:

      cpu:        100m

      memory:     70Mi

    Liveness:     http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5

    Readiness:    http-get http://:8181/ready delay=0s timeout=1s period=10s #success=1 #failure=3

    Environment:  <none>

    Mounts:

      /etc/coredns from config-volume (ro)

      /var/run/secrets/kubernetes.io/serviceaccount from coredns-token-zzk2c (ro)

Conditions:

  Type           Status

  PodScheduled   False 

Volumes:

  config-volume:

    Type:      ConfigMap (a volume populated by a ConfigMap)

    Name:      coredns

    Optional:  false

  coredns-token-zzk2c:

    Type:        Secret (a volume populated by a Secret)

    SecretName:  coredns-token-zzk2c

    Optional:    false

QoS Class:       Burstable

Node-Selectors:  kubernetes.io/os=linux

Tolerations:     CriticalAddonsOnly op=Exists

                 node-role.kubernetes.io/master:NoSchedule

                 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  44m                 default-scheduler  0/1 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate.

  Warning  FailedScheduling  46m (x34 over 51m)  default-scheduler  0/1 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate.


0 回复 有任何疑惑可以回复我~
  • 清风 #1
    kubectl get nodes 看下结果
    回复 有任何疑惑可以回复我~ 2024-12-23 17:35:07
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号