add vault secrets and fix still poiting to election
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 3m14s

This commit is contained in:
2026-05-13 11:03:14 +02:00
parent 98a77049cd
commit cba49b734c
11 changed files with 83 additions and 50 deletions

View File

@@ -19,11 +19,20 @@ spec:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: mydatabase
valueFrom:
secretKeyRef:
name: taskarr-db
key: DATABASE
- name: POSTGRES_USER
value: user123
valueFrom:
secretKeyRef:
name: taskarr-db
key: USER
- name: POSTGRES_PASSWORD
value: password123 # In production, use a Secret!
valueFrom:
secretKeyRef:
name: taskarr-db
key: PASSWORD
volumeMounts:
- mountPath: /var/lib/postgresql
name: postgredb