add vault secrets and fix still poiting to election
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 3m14s
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 3m14s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user