cnpg recovery/moving

This commit is contained in:
Joseph Hanson 2023-08-15 17:13:40 +00:00
parent b49e1330d3
commit 9dc757ba15
5 changed files with 14 additions and 14 deletions

View file

@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: fediverse namespace: fediverse
resources: resources:
- ./externalsecret.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
configMapGenerator: configMapGenerator:
- name: cloudnative-pg-dashboard - name: cloudnative-pg-dashboard

View file

@ -26,7 +26,7 @@ spec:
enablePodMonitor: true enablePodMonitor: true
backup: backup:
recovery: recovery:
source: clusterBackup source: &previousCluster postgres-v3
retentionPolicy: 30d retentionPolicy: 30d
barmanObjectStore: barmanObjectStore:
wal: wal:
@ -43,9 +43,13 @@ spec:
name: cloudnative-pg-secret name: cloudnative-pg-secret
key: aws-secret-access-key key: aws-secret-access-key
externalClusters: externalClusters:
- name: clusterBackup - name: *previousCluster
barmanObjectStore: barmanObjectStore:
destinationPath: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com wal:
compression: bzip2
maxParallel: 8
destinationPath: s3://valinor-cnpg/
endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: cloudnative-pg-secret name: cloudnative-pg-secret
@ -53,6 +57,3 @@ spec:
secretAccessKey: secretAccessKey:
name: cloudnative-pg-secret name: cloudnative-pg-secret
key: aws-secret-access-key key: aws-secret-access-key
wal:
maxParallel: 8
compression: bzip2

View file

@ -6,4 +6,4 @@ resources:
- ./cluster.yaml - ./cluster.yaml
- ./scheduledbackup.yaml - ./scheduledbackup.yaml
- ./prometheusrule.yaml - ./prometheusrule.yaml
# - ./service.yaml - ./externalsecret.yaml

View file

@ -174,7 +174,7 @@ spec:
dependsOn: dependsOn:
- name: cluster-apps-cloudnative-pg - name: cluster-apps-cloudnative-pg
- name: cluster-apps-external-secrets-stores - name: cluster-apps-external-secrets-stores
path: ./kubernetes/apps/fediverse/app/mastodon/cnpg path: ./kubernetes/apps/fediverse/mastodon/app/cnpg
prune: true prune: true
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository