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
namespace: fediverse
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
configMapGenerator:
- name: cloudnative-pg-dashboard

View file

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

View file

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

View file

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