postgres: add attic db
This commit is contained in:
25
postgres/config/attic_auth.yaml
Normal file
25
postgres/config/attic_auth.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
9
postgres/config/databases/attic.yaml
Normal file
9
postgres/config/databases/attic.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Database
|
||||||
|
metadata:
|
||||||
|
name: attic
|
||||||
|
spec:
|
||||||
|
name: attic
|
||||||
|
owner: attic
|
||||||
|
cluster:
|
||||||
|
name: weyma-pgsql
|
||||||
Reference in New Issue
Block a user