-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INCIDENT-001: postgres doesnt have Point of Recoverability so it migh…
…t fail when there's no replicas left Also upgrade cnpg version while I'm at it. We backup now to an R2 bucket that has the postgres backups.
- Loading branch information
1 parent
8a24a90
commit b30b7d3
Showing
6 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: cnpg-backup-secret | ||
namespace: pg | ||
type: Opaque | ||
stringData: | ||
ACCESS_KEY_ID: <FILL-IN> | ||
ACCESS_SECRET_KEY: <FILL-IN> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
services/storage/longhorn/storageClasses/longhorn-strict-local-no-backup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: longhorn-strict-local-no-backup | ||
provisioner: driver.longhorn.io | ||
allowVolumeExpansion: true | ||
reclaimPolicy: "Delete" | ||
volumeBindingMode: Immediate | ||
parameters: | ||
numberOfReplicas: "1" | ||
staleReplicaTimeout: "720" | ||
fromBackup: "" | ||
fsType: "ext4" | ||
dataLocality: "strict-local" | ||
replicaAutoBalance: "ignored" | ||
# diskSelector: "ssd,fast" | ||
# nodeSelector: "storage,fast" |