attic: try to use postgres

This commit is contained in:
2026-03-06 14:12:20 -05:00
parent b04c27eaf1
commit a55400a0ba
2 changed files with 26 additions and 0 deletions

24
attic/db_auth.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: attic-db-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:
ATTIC_SERVER_DATABASE_URL: "postgres://attic:{{ .password }}@pooler-weyma-rw.cloudnativepg.svc.cluster.local/attic"
creationPolicy: Owner
deletionPolicy: Retain
name: attic-db-auth

View File

@@ -18,6 +18,8 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: attic-secret name: attic-secret
- secretRef:
name: attic-db-auth
- secretRef: - secretRef:
name: attic-bucket name: attic-bucket
volumeMounts: volumeMounts: