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
|
kind: Kustomization
|
||||||
namespace: fediverse
|
namespace: fediverse
|
||||||
resources:
|
resources:
|
||||||
- ./externalsecret.yaml
|
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: cloudnative-pg-dashboard
|
- name: cloudnative-pg-dashboard
|
||||||
|
|
|
@ -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,16 +43,17 @@ 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
|
|
||||||
s3Credentials:
|
|
||||||
accessKeyId:
|
|
||||||
name: cloudnative-pg-secret
|
|
||||||
key: aws-access-key-id
|
|
||||||
secretAccessKey:
|
|
||||||
name: cloudnative-pg-secret
|
|
||||||
key: aws-secret-access-key
|
|
||||||
wal:
|
wal:
|
||||||
maxParallel: 8
|
|
||||||
compression: bzip2
|
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
|
||||||
|
|
|
@ -6,4 +6,4 @@ resources:
|
||||||
- ./cluster.yaml
|
- ./cluster.yaml
|
||||||
- ./scheduledbackup.yaml
|
- ./scheduledbackup.yaml
|
||||||
- ./prometheusrule.yaml
|
- ./prometheusrule.yaml
|
||||||
# - ./service.yaml
|
- ./externalsecret.yaml
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue