![]() |
8 سال پیش | |
---|---|---|
.. | ||
secret | 8 سال پیش | |
README.md | 8 سال پیش | |
cephfs-with-secret.yaml | 8 سال پیش | |
cephfs.yaml | 8 سال پیش |
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 a Kubernetes cluster, you can create a pod based on my examples cephfs.yaml and cephfs-with-secret.yaml. In the pod yaml, you need to provide the following information.
Here are the commands:
# kubectl create -f examples/volumes/cephfs/cephfs.yaml
# create a secret if you want to use Ceph secret instead of secret file
# kubectl create -f examples/volumes/cephfs/secret/ceph-secret.yaml
# kubectl create -f examples/volumes/cephfs/cephfs-with-secret.yaml
# kubectl 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.