Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. git clone https://github.com/bodom0015/gluster -b NDS-785 && cd gluster/templates/
  2. kubectl create -f glusterclaim1.svc.yaml json -f claim1claim2.json
  3. kubectl get pvc,pv
  4. kubectl create -f claim2gluster.svc.json yaml -f gluster.rc.yaml
  5. export ENDPOINT_1=$(kubectl get ep glusterfs-cluster | grep -v ENDPOINTS | awk '{print $2}' | awk 'BEGIN { FS=","; }{print $1}' | awk 'BEGIN { FS=":"; }{print $1}')
  6. export ENDPOINT_2=$(kubectl get ep glusterfs-cluster | grep -v ENDPOINTS | awk '{print $2}' | awk 'BEGIN { FS=","; }{print $2}' | awk 'BEGIN { FS=":"; }{print $1}')
  7. kubectl exec -it `kubectl get pod | grep glfs-server-1 | awk '{print $1}'` sh
  8. gluster peer probe <endpoint ip>
  9. gluster volume create $VOLNAME $VOLSPEC <endpoint 1 from above>:/media/brick0 <endpoint 2 from above>:/media/brick0
  10. gluster volume start global

...