postgres: add attic db

This commit is contained in:
2026-03-06 13:58:43 -05:00
parent 684626c887
commit 40eecf287f
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: attic-auth
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: cloudnativepg
metadataPolicy: None
property: attic_pw
secretKey: password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
template:
data:
username: attic
password: "{{ .password }}"
creationPolicy: Owner
deletionPolicy: Retain
name: attic-auth

View File

@@ -60,6 +60,12 @@ spec:
login: true login: true
passwordSecret: passwordSecret:
name: netmaker-auth name: netmaker-auth
- name: attic
ensure: present
comment: attic
login: true
passwordSecret:
name: attic-auth
- name: pooler - name: pooler
ensure: present ensure: present
comment: pooler comment: pooler

View File

@@ -0,0 +1,9 @@
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: attic
spec:
name: attic
owner: attic
cluster:
name: weyma-pgsql