mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-20 23:16:49 +00:00
Fix VPS replica clusters: barmanObjectStore serverName mismatch
CNPG's barmanObjectStore.serverName defaults to the externalClusters[]
entry's own .name field ('home-backup', an arbitrary label I chose) -
NOT the actual source Postgres cluster's name. Home's backup: block
(on the real pg-authentik/pg-n8n/pg-nextcloud Clusters) defaults
serverName to its own metadata.name instead. Without an explicit
override these two disagree, so recovery searches the object store
under the wrong server-name prefix and finds nothing - 'no target
backup found', confirmed live even after the ScheduledBackup fix
produced real, completed base backups.
This commit is contained in:
@@ -50,6 +50,15 @@ spec:
|
|||||||
externalClusters:
|
externalClusters:
|
||||||
- name: home-backup
|
- name: home-backup
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
|
# serverName defaults to the externalClusters[].name ("home-backup")
|
||||||
|
# here, NOT the source Postgres cluster's actual name - but home's
|
||||||
|
# barmanObjectStore backup: block (on the pg-authentik Cluster
|
||||||
|
# itself) defaults serverName to its own metadata.name
|
||||||
|
# ("pg-authentik"). Without this override, recovery looks for
|
||||||
|
# backups under the wrong server-name prefix and finds none -
|
||||||
|
# "no target backup found" despite the backup genuinely existing
|
||||||
|
# (confirmed live 2026-08-18).
|
||||||
|
serverName: pg-authentik
|
||||||
destinationPath: s3://cnpg-backups/pg-authentik
|
destinationPath: s3://cnpg-backups/pg-authentik
|
||||||
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ spec:
|
|||||||
externalClusters:
|
externalClusters:
|
||||||
- name: home-backup
|
- name: home-backup
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
|
# See infrastructure/vps-standby/authentik/manifests/cnpg-cluster.yaml
|
||||||
|
# for why this override is required (serverName defaults to the
|
||||||
|
# externalClusters[].name, not the source cluster's real name).
|
||||||
|
serverName: pg-n8n
|
||||||
destinationPath: s3://cnpg-backups/pg-n8n
|
destinationPath: s3://cnpg-backups/pg-n8n
|
||||||
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ spec:
|
|||||||
externalClusters:
|
externalClusters:
|
||||||
- name: home-backup
|
- name: home-backup
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
|
# See infrastructure/vps-standby/authentik/manifests/cnpg-cluster.yaml
|
||||||
|
# for why this override is required (serverName defaults to the
|
||||||
|
# externalClusters[].name, not the source cluster's real name).
|
||||||
|
serverName: pg-nextcloud
|
||||||
destinationPath: s3://cnpg-backups/pg-nextcloud
|
destinationPath: s3://cnpg-backups/pg-nextcloud
|
||||||
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
endpointURL: http://vps-minio.minio.svc.cluster.local:9000
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
|
|||||||
Reference in New Issue
Block a user