Using Ceph volume client
- Build cephfs-provisioner and container image
go build cephfs-provisioner.go
docker build -t youdomain.com/public/cephfs-provisioner:v1 .
- Create a Ceph admin secret
kubectl create -f ceph-secret-admin.yaml
- Start CephFS provisioner first edit cephfs-provisioner-deploy.yaml change monitors in you side!!!
kubectl create -f cephfs-provisioner-deploy.yaml
- Create a CephFS Storage Class
kubectl create -f cephfs-storage-class.yaml
- Create a pvc
kubectl create -f cephfs-pvc
- Create a Deployment using the pvc
kubectl create -f cephfs-deploy.yaml