gravity icon indicating copy to clipboard operation
gravity copied to clipboard

Setup default storage class

Open r0mant opened this issue 4 years ago • 2 comments

When OpenEBS is enabled, Gravity clusters include two storage classes out of the box, openebs-hostpath and openebs-device, but there's not default storage class which means that a user has to specify storage class explicitly in their claim. To improve UX in this area we could do the following:

  • Make "openebs-hostpath" the default storage class since it always works.
  • Add a note to the Persistent Storage section of our docs about default storage class and changing the default storage class: https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/.

r0mant avatar Mar 26 '20 00:03 r0mant

I have added the following to my install hook script to accomplish this for now. I do agree it should just be openebs-hostpath from the start or at least an option in the storage section of your app.yaml. kubectl patch storageclass openebs-hostpath -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

denniswebb avatar Sep 04 '20 05:09 denniswebb

Thanks for your contribution @denniswebb ... I'm going to resume working on this soon and definitely going to take your suggestion into account. Thanks again!

eldios avatar Sep 07 '20 16:09 eldios