Skip to content

Commit 531f589

Browse files
committed
Config map
1 parent bf1679d commit 531f589

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/k8s_conf/db_server.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ status:
1919
loadBalancer: {}
2020

2121
---
22+
apiVersion: v1
23+
kind: ConfigMap
24+
metadata:
25+
name: postgres-configuration
26+
labels:
27+
app: postgres
28+
data:
29+
POSTGRES_DB: paws
30+
POSTGRES_USER: postgres
31+
POSTGRES_PASSWORD: thispasswordisverysecure
32+
---
33+
2234
apiVersion: apps/v1
2335
kind: Deployment
2436
metadata:
@@ -47,9 +59,12 @@ spec:
4759
spec:
4860
containers:
4961
- env:
62+
- name: POSTGRES_DB
63+
value: paws
5064
- name: POSTGRES_PASSWORD
5165
value: thispasswordisverysecure
52-
image: localhost:5000/postgres:11.3-alpine
66+
67+
image: postgres:11-alpine # localhost:5000/postgres:11.3-alpine
5368
imagePullPolicy: ""
5469
name: paws-compose-db
5570
ports:

0 commit comments

Comments
 (0)