I follow this example to create pod with volume , https://github.com/kubernetes/kubernetes/blob/master/examples/cephfs/cephfs.yaml, I guess someting wrong for me.
docker inspect:
"/mnt/cephfs": "/var/lib/kubelet/pods/7631bff0-7155-11e5-9e8a-000c29de7e43/volumes/kubernetes.io~empty-dir/cephfs"
and my yaml is:
apiVersion: v1
kind: Pod
metadata:
name: cephfs
spec:
containers:
- name: cephfs-rw
image: centosphpok
volumeMounts:
- mountPath: "/mnt/cephfs"
name: cephfs
volumes:
- name: cephfs
cephfs:
monitors:
- 10.0.0.206:6789
user: admin
secretFile: "/etc/ceph/admin.secret"
readOnly: true
/var/log/kubelet.log
on your node and see if it prints an errors while trying to mount the volume? If you look in/etc/ceph/admin.secret
inside your pod does it contain the correct information to mount the volume? – Robert Bailey