Skip to content

Commit a6dd4a1

Browse files
committed
Updated k8s yaml files for secrets from env
1 parent 4204bd3 commit a6dd4a1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/k8s_conf/api_server.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ spec:
5858
volumeMounts:
5959
- mountPath: /app/static/raw_data
6060
name: src-archive
61+
envFrom:
62+
- secretRef:
63+
name: api-server-pws-7c66bb2cf7
64+
- secretRef:
65+
name: db-pass-762dk6hmhm
6166
restartPolicy: Always
6267
serviceAccountName: ""
6368
imagePullSecrets:

src/k8s_conf/db_server.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ metadata:
2828
data:
2929
POSTGRES_DB: paws
3030
POSTGRES_USER: postgres
31-
POSTGRES_PASSWORD: thispasswordisverysecure
31+
3232
---
3333

3434
apiVersion: apps/v1
@@ -61,9 +61,9 @@ spec:
6161
- env:
6262
- name: POSTGRES_DB
6363
value: paws
64-
- name: POSTGRES_PASSWORD
65-
value: thispasswordisverysecure
66-
64+
envFrom:
65+
- secretRef:
66+
name: db-pass-762dk6hmhm
6767
image: postgres:11-alpine # localhost:5000/postgres:11.3-alpine
6868
imagePullPolicy: ""
6969
name: paws-compose-db

0 commit comments

Comments
 (0)