K8s: Investigate more robust way of handling snapshots #1658
Description
(This is a stub issue, I'll flesh it out later)
We needed to snapshot various disks (postgres, redis, etc) when sourcegraph.com was migrated to use https://github.com/sourcegraph/deploy-sourcegraph fork. We realized that we needed to manually specify a persistent volume for each deployment so that we could refer to the snapshot GCP disk. Unfortunately, this means that we had to manually create a GCP disk for each persistent volume, which is really tedious / error-prone.
https://github.com/sourcegraph/deploy-sourcegraph needs to either:
-
Be updated with instructions / stub PersistenVolume files that direct the user to create explicit disks for each deployment (which might not be true on non-GCP services)
-
Do more investigation to see how other people handle snapshots on k8s to see if there are more robust ways to accomplish this
-
Do more digging into how other projects do snapshots