I'm trying to mount a ceph RDB volume in a pod create by kubernetes under CoreOS.
- CoreOS version is
beta (1153.4.0)
- Hyperkube version is
v1.3.7+coreos.0
- ceph version is
jewel
Is use this POD:
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "rbd2"
},
"spec": {
"containers": [
{
"name": "rbd-rw",
"image": "nginx",
"volumeMounts": [
{
"mountPath": "/mnt/rbd",
"name": "rbdpd"
}
]
}
],
"volumes": [
{
"name": "rbdpd",
"rbd": {
"monitors": [
"10.203.69.254"
],
"pool": "rbd",
"image": "foo",
"user": "admin",
"secretRef": {
"name": "ceph-secret"
},
"fsType": "ext4",
"readOnly": true
}
}
]
}
}
If i start this pod it is created but stay in status: ContainerCreating
The problem is that the pod seems not to be able to create the rbd device.
If i connect to the node where the pod has been deployed and create the rbd device (on the host) with the rbdmap command, the device is create and the pod can mount the volume. Then the pod's status switch to Running
If i delete the pod, the rbd device is removed automatically.
To resume, what can be the issue that cause kubernetes to not be able to create the rbd device.