GlusterFS server pod for OpenShift 3.
Edit scc.yml, replace YOUR_USERNAME with your login account, then
oc create -f scc.yml
oc create -f glusterd.json
oc create -f service.json
Once your service is created, run oc get service glusterd, you will get an IP of your service, replace #SERVICE_IP# with this IP in endpoints.json, then create an endpoint.
Assume your service ip is 172.30.172.117, then:
sed -i s/#SERVICE_IP#/172.30.172.117/ endpoints.json
oc create -f endpoints.json
Once you have your server pod created, run oc exec glusterd -- gluster volume info testvol, you should see Status: Started. If you haven't seen it, wait a short time until it's successfully deployed.
oc create -f pv-rwo.json
oc create -f pvc-rwo.json
oc get pv
oc get pvc
You should see PV and PVC are bound together
Run oc create -f pod.json, when you see pod is Running, it has mounted the GlusterFS volume successfully.