2026-01-06 03:30:41 +00:00
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
|
kind: Cluster
|
|
|
|
|
metadata:
|
|
|
|
|
name: customer1-pgdb
|
2026-01-06 05:11:39 +00:00
|
|
|
namespace: customer1
|
2026-01-16 20:33:37 +00:00
|
|
|
|
2026-01-06 03:30:41 +00:00
|
|
|
spec:
|
2026-03-22 19:24:53 +00:00
|
|
|
serviceAccountName: cnpg-backup-sa
|
2026-01-06 05:41:53 +00:00
|
|
|
managed:
|
2026-01-06 05:57:16 +00:00
|
|
|
roles:
|
|
|
|
|
- name: customer1
|
|
|
|
|
ensure: present
|
|
|
|
|
login: true
|
|
|
|
|
passwordSecret:
|
|
|
|
|
name: customer1-db-credentials
|
2026-01-16 20:33:37 +00:00
|
|
|
- name: news_app
|
|
|
|
|
ensure: present
|
|
|
|
|
login: true
|
|
|
|
|
passwordSecret:
|
2026-03-22 19:24:53 +00:00
|
|
|
name: news-app-password
|
2026-01-06 03:30:41 +00:00
|
|
|
instances: 3
|
|
|
|
|
imageName: ghcr.io/cloudnative-pg/postgresql:15.2
|
|
|
|
|
storage:
|
2026-03-20 02:07:46 +00:00
|
|
|
size: 10Gi
|
2026-01-06 03:30:41 +00:00
|
|
|
bootstrap:
|
|
|
|
|
initdb:
|
2026-01-06 05:27:10 +00:00
|
|
|
database: n8n
|
|
|
|
|
owner: customer1
|
2026-01-06 03:30:41 +00:00
|
|
|
secret:
|
|
|
|
|
name: customer1-db-credentials
|
2026-02-02 23:20:46 +00:00
|
|
|
serviceAccountTemplate:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2026-03-22 19:24:53 +00:00
|
|
|
iam.gke.io/gcp-service-account: cnpg-backup-sa@devops-lab-cluster.iam.gserviceaccount.com
|
2026-02-02 23:20:46 +00:00
|
|
|
|
|
|
|
|
backup:
|
|
|
|
|
barmanObjectStore:
|
|
|
|
|
destinationPath: "gs://customer1_db_backup/customer1-backups/"
|
|
|
|
|
googleCredentials:
|
2026-02-02 23:42:49 +00:00
|
|
|
gkeEnvironment: true
|
|
|
|
|
wal:
|
|
|
|
|
compression: gzip
|
|
|
|
|
data:
|
|
|
|
|
compression: gzip
|
|
|
|
|
jobs: 2
|
2026-02-04 01:53:58 +00:00
|
|
|
retentionPolicy: "30d"
|
|
|
|
|
target: primary
|