用longhorn做动态卷管理的,创建POD的时,提示无法挂载卷

root@k8s02:~# kubectl describe pod web-0 Name:           web-0 Namespace:      default Node:           k8s02/10.11.1.252 Start Time:     Mon, 16 Apr 2018 23:50:18 +0800 Labels:         app=nginx                 controller-revision-hash=web-6596ffb49b                 statefulset.kubernetes.io/pod-name=web-0 Annotations:    field.cattle.io/publicEndpoints=[{"port":30205,"protocol":"TCP","serviceName":"default:nginx","allNodes":true}] Status:         Pending IP:              Controlled By:  StatefulSet/web Containers:   nginx:     Container ID:        Image:          k8s.gcr.io/nginx-slim:0.8     Image ID:            Port:           80/TCP     Host Port:      0/TCP     State:          Waiting       Reason:       ContainerCreating     Ready:          False     Restart Count:  0     Environment:         Mounts:       /usr/share/nginx/html from www (rw)       /var/run/secrets/kubernetes.io/serviceaccount from default-token-5kwxx (ro) Conditions:   Type           Status   Initialized    True    Ready          False    PodScheduled   True  Volumes:   www:     Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)     ClaimName:  www-web-0     ReadOnly:   false   default-token-5kwxx:     Type:        Secret (a volume populated by a Secret)     SecretName:  default-token-5kwxx     Optional:    false QoS Class:       BestEffort Node-Selectors:   Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s                  node.kubernetes.io/unreachable:NoExecute for 300s Events:   Type     Reason                 Age   From               Message   ----     ------                 ----  ----               -------   Normal   Scheduled              3m    default-scheduler  Successfully assigned web-0 to k8s02   Normal   SuccessfulMountVolume  2m    kubelet, k8s02     MountVolume.SetUp succeeded for volume "default-token-5kwxx"   Warning  FailedMount            57s   kubelet, k8s02     Unable to mount volumes for pod "web-0_default(dcd3f065-418d-11e8-9809-0050569f5008)": timeout expired waiting for volumes to attach/mount for pod "default"/"web-0". list of unattached/unmounted volumes=[www]
已邀请:
mark,我也碰到这个问题了

王伟军 - 分享技术,分享快乐

/uploads/image/fujian/20180617/1529245060747276.jpg

/uploads/image/fujian/20180617/1529245816378182.jpg

不知道对不对,如有错误请大神们告知,谢谢~~

要回复问题请先登录注册