clean up and add routes to paas site

This commit is contained in:
sirius0xdev 2026-04-28 03:31:52 +00:00
commit 9f5d1fb723
36 changed files with 222 additions and 10 deletions

View file

@ -0,0 +1,12 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: daily-full-backup
namespace: customer1
spec:
schedule: "0 3 * * *" # Daily at 03:00 UTC (adjust cron as needed)
suspend: false
immediate: false # No immediate run (or true if you want one now too)
backupOwnerReference: self
cluster:
name: customer1-pgdb

View file

@ -0,0 +1,24 @@
apiVersion: v1
data:
password: ENC[AES256_GCM,data:yZPMwM3BGfCpXVXzm49EUJwNeOo=,iv:Kh5J6nbJZp0ZVxLH1QEsl06UIRFYNrG62di0wZmiSl8=,tag:DXjcB8j8mZVxBhGx/dKXVw==,type:str]
username: ENC[AES256_GCM,data:ID+A1uWoPn58ZHyg,iv:VAKxpvL2rxLsPcid+dWDmq0dr+F3nRki2etFyiOl3IU=,tag:MlMY6Gz90fpSNncyYFd00Q==,type:str]
kind: Secret
metadata:
creationTimestamp: null
name: customer1-db-credentials
namespace: customer1
sops:
age:
- recipient: age1uuxf066xuuqgvjppxfcmqkwfcufnwp3wcwnl9h20g9k4l8nkw9jsaungf7
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWMXU2V2FHQzh5OC9KOTZD
MlRuc2s3YndTT3dWQ01wUHIwTm9vaTV0NVc4CjNCRTZBOFAwenlKbnJtYm8vRFUw
cFdPUDdMN0hVN0wxUml3ekN0aW81ZTQKLS0tIGpXSDg5NTN4NHlOLzQxUUIva0Q1
dmdIZDFYeHU4eTh0eFdOY3BsdGg2eUkKS0AOhOaPmcnl/YvtpogCdWZbkY0x3xAl
LWEVsJXjXc/PqsJWVNmFlYc0LfdQGmOvJ8Ae4o+HRcgbt9MgnDukeA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2026-01-06T04:37:30Z"
mac: ENC[AES256_GCM,data:phCikbgPE1/vv4PqtcFHtliSp/mWG9pgeVEcVWGhGm/3h5QGVij3G1V4vD/o5Omv+EnQ9IWhhvK15N5DmHVH9vI8xLkXb68quu76u13nwAMa02s3QzSfjMup5jyB71tbTb2QkThxNPdaItPcm97x9KCT12w1WSbLVM/qN7gbxUA=,iv:Bw3WOB7fqIs6KbKGm/gTAGKuxLNFPUuMzZzrbS32C7g=,tag:yw4z2MYLR0QBODrx3HrrPQ==,type:str]
encrypted_regex: ^(data|stringData)$
version: 3.11.0

View file

@ -0,0 +1,48 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: customer1-pgdb
namespace: customer1
spec:
managed:
roles:
- name: customer1
ensure: present
login: true
passwordSecret:
name: customer1-db-credentials
- name: news_app
ensure: present
login: true
passwordSecret:
name: news-app-password
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:15.2
storage:
size: 10Gi
bootstrap:
initdb:
database: n8n
owner: customer1
secret:
name: customer1-db-credentials
serviceAccountTemplate:
metadata:
name: cnpg-backup-sa
annotations:
iam.gke.io/gcp-service-account: [email protected]
backup:
barmanObjectStore:
destinationPath: "gs://customer1_db_backup/customer1-backups/"
googleCredentials:
gkeEnvironment: true
wal:
compression: gzip
data:
compression: gzip
jobs: 2
retentionPolicy: "30d"
target: primary

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: n8n-data
namespace: customer1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi