Install Ceph on the Kubernetes host. For example, on Fedora 21
# yum -y install ceph
If you don't have a Ceph cluster, you can set up a containerized Ceph cluster
Then get the keyring from the Ceph cluster and copy it to /etc/ceph/keyring.
Once you have installed Ceph and new Kubernetes, you can create a pod based on my examples cephfs.json and cephfs-with-secret.json. In the pod JSON, you need to provide the following information.
Here are the commands:
# create a secret if you want to use Ceph secret instead of secret file
# cluster/kubectl.sh create -f examples/cephfs/secret/ceph-secret.yaml
# cluster/kubectl.sh create -f examples/cephfs/v1beta3/cephfs.json
# cluster/kubectl.sh get pods
If you ssh to that machine, you can run docker ps
to see the actual pod and docker inspect
to see the volumes used by the container.