cnpg recovery/moving
This commit is contained in:
parent
b49e1330d3
commit
9dc757ba15
5 changed files with 14 additions and 14 deletions
|
@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
namespace: fediverse
|
||||
resources:
|
||||
- ./externalsecret.yaml
|
||||
- ./helmrelease.yaml
|
||||
configMapGenerator:
|
||||
- name: cloudnative-pg-dashboard
|
||||
|
|
|
@ -26,7 +26,7 @@ spec:
|
|||
enablePodMonitor: true
|
||||
backup:
|
||||
recovery:
|
||||
source: clusterBackup
|
||||
source: &previousCluster postgres-v3
|
||||
retentionPolicy: 30d
|
||||
barmanObjectStore:
|
||||
wal:
|
||||
|
@ -43,9 +43,13 @@ 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
|
||||
wal:
|
||||
compression: bzip2
|
||||
maxParallel: 8
|
||||
destinationPath: s3://valinor-cnpg/
|
||||
endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: cloudnative-pg-secret
|
||||
|
@ -53,6 +57,3 @@ spec:
|
|||
secretAccessKey:
|
||||
name: cloudnative-pg-secret
|
||||
key: aws-secret-access-key
|
||||
wal:
|
||||
maxParallel: 8
|
||||
compression: bzip2
|
||||
|
|
|
@ -6,4 +6,4 @@ resources:
|
|||
- ./cluster.yaml
|
||||
- ./scheduledbackup.yaml
|
||||
- ./prometheusrule.yaml
|
||||
# - ./service.yaml
|
||||
- ./externalsecret.yaml
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue