GoogleCloudPlatform / microservices-demo

Sample cloud-first application with 10 microservices showcasing Kubernetes, Istio, and gRPC.
https://cymbal-shops.retail.cymbal.dev
Apache License 2.0
16.65k stars 7.08k forks source link

PersistentVolume with external storage support for in-cluster databases #1231

Open mathieu-benoit opened 1 year ago

mathieu-benoit commented 1 year ago

Today, the in-cluster redis database is a Deployment, as a best practice for such in-cluster scenario it would be great to have it as StatefulSet with a PersistentVolume. Maybe with Filestore like illustrated here? Or maybe another storage? That will also illustrate yet another great story with multiple Google Cloud services while showing best practices. This will allow Online Boutique's users (Googlers, etc.) to have a ready to use solution for such stateful workloads scenarios.

We maybe don't want to have this as default, and we may want to keep this as Deployment by default (?), but maybe to start with a new Online Boutique variation (i.e. Kustomize overlay) would be a great candidate?

Tagging @bourgeoisor @ahrarmonsur @charlieyu1996 as I'm sure they could provide more insights around this and maybe planning this for 2023?

NimJay commented 1 year ago

This is a great idea, and a good point of collaboration for myself and the GKE DPEs.

My initial thoughts:

bourgeoisor commented 1 year ago

Linking the analogue for Bank of Anthos: https://github.com/GoogleCloudPlatform/bank-of-anthos/issues/1068

NimJay commented 10 months ago

Commenting since this is near out-of-SLO:

Irene-123 commented 1 month ago

Can I take this up?