Hubs-Foundation / hubs-cloud

Resources for self hosted Hubs Cloud instances
Mozilla Public License 2.0
149 stars 88 forks source link

Ce persistent volumes #337

Closed hrithikwins closed 2 months ago

hrithikwins commented 3 months ago

Along with persistent volumes here are two major fixes here

  1. The yaml file is same as the namespace name (earlier it was hcce.yaml, now it's same as the namespace)
  2. The persist.yam is the template from where the persistent volume comes up , the 2nd commit has the diff between the actual hcce.yam file and the new changes added
mikemorran commented 2 months ago

Hey @hrithikwins, a few notes about this after consulting with @tanfarming...

  1. I don't know if we can implement a one-size-fits-all solution like this because your storage classes are going to vary from platform to platform. For instance, you have specified manual as the storage class and ReadWriteMany as the AccessModes, but GKE does not support PVs on disk with ReadWriteMany: https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes#access_modes

  2. Users may want to implement a few potential options for PVs and Community Edition. In the example of GKE, PVs on disk are only possible if you have one instance of ret and pgsql on your cluster. This makes sense for a development instance where you do not want to pay for a full FS instance. But, if someone wants to build out a more production environment or run multiple CE instances on one cluster, they should probably consider setting up NAS storage instead of just using PVs on their VMs' disks.

Happy to go over this in more detail during next week's session!

hrithikwins commented 2 months ago

Alright makes sense,

  1. ReadWriteMany is so that multiple nodes can access to that same data on one node
  2. On digital ocean I tried with multiple namespaces on the same cluster so multiple pvs worked but yeah I overlooked this scenario to work on Google Cloud as well
vincentfretin commented 2 months ago

FYI Scaleway kubernetes doesn't support ReadWriteMany PV either https://feature-request.scaleway.com/posts/13/add-multi-attach-pv-for-kapsule