k8s版本: v1.9
环境: VirtualBox
操作系统: Coreos
它是1个节点的Kubernetes集群,我按照以下步骤操作:
--挂载目标,volume=modprobe =/usr/sbin/modprobe\
--卷库模块,kind=host,源=/lib/模块\
--mount volume=lib-modules,target=/lib/modules \
--uuid-file-save=/var/run/kubelet-pod.uuid“
rbd -v
ceph版本10.2.2 (45107e21c568dd033c2f0a3107dec8f0b0e58374)
所有rook pod都工作正常,但MySQL pod失败,并显示错误“timeout expired waiting for pod to attach/mount for pod”
➜ kubectl get pod -n rook-system
NAME READY STATUS RESTARTS AGE
rook-agent-rqw6j 1/1 Running 0 21m
rook-operator-5457d48c94-bhh2z 1/1 Running 0 22m
➜ kubectl get pod -n rook
NAME READY STATUS RESTARTS AGE
rook-api-848df956bf-fhmg2 1/1 Running 0 20m
rook-ceph-mgr0-cfccfd6b8-8brxz 1/1 Running 0 20m
rook-ceph-mon0-xdd77 1/1 Running 0 21m
rook-ceph-mon1-gntgh 1/1 Running 0 20m
rook-ceph-mon2-srmg8 1/1 Running 0 20m
rook-ceph-osd-84wmn 1/1 Running 0 20m
➜ kubectl get pv
NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-6a4c5c2a-127d-11e8-a846-080027b424ef 20Gi RWO Delete Bound default/mysql-pv-claim rook-block 15m
➜ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE
mysql-pv-claim Bound pvc-6a4c5c2a-127d-11e8-a846-080027b424ef 20Gi RWO rook-block 15m
kubectl get pods
NAME READY STATUS RESTARTS AGE
wordpress-mysql-557ffc4f69-8zxsq 0/1 ContainerCreating 0 16m
Error when I describe pod : FailedMount Unable to mount volumes for pod "wordpress-mysql-557ffc4f69-8zxsq_default(6a932df1-127d-11e8-a846-080027b424ef)": timeout expired waiting for volumes to attach/mount for pod "default"/"wordpress-mysql-557ffc4f69-8zxsq". list of unattached/unmounted volumes=[mysql-persistent-storage]还向rook-operator.yaml添加了以下选项
- name: FLEXVOLUME_DIR_PATH
value: "/var/lib/kubelet/volumeplugins"你能帮个忙吗?如果你需要更多的细节,请让我知道。我检查了类似的问题,但解决方案不起作用。
发布于 2018-02-21 21:47:19
您是否使用cephfs或rbd卷作为Ceph的后端?以下是一些需要检查的内容:
https://stackoverflow.com/questions/48848589
复制相似问题