-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubernetes-deployment.yml
43 lines (43 loc) · 1.19 KB
/
kubernetes-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: a9s-postgresql-demo
spec:
replicas: 1
template:
metadata:
labels:
app: a9s-postgresql-demo
tier: frontend
spec:
containers:
- name: a9s-postgresql-demo
image: anyninesgmbh/a9s-postgresql-app:latest
ports:
- containerPort: 3000
env:
- name: "POSTGRESQL_HOST"
valueFrom:
secretKeyRef:
name: postgresql-binding
key: host
- name: "POSTGRESQL_PASSWORD"
valueFrom:
secretKeyRef:
name: postgresql-binding
key: password
- name: "POSTGRESQL_PORT"
valueFrom:
secretKeyRef:
name: postgresql-binding
key: port
- name: "POSTGRESQL_USERNAME"
valueFrom:
secretKeyRef:
name: postgresql-binding
key: user
- name: "POSTGRESQL_DATABASE"
valueFrom:
secretKeyRef:
name: postgresql-binding
key: name