-
Notifications
You must be signed in to change notification settings - Fork 0
/
openindoor-pgadmin.yaml
61 lines (61 loc) · 1.23 KB
/
openindoor-pgadmin.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: v1
kind: Service
metadata:
name: openindoor-pgadmin
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
run: openindoor-pgadmin
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: openindoor-pgadmin-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: openindoor-pgadmin
name: openindoor-pgadmin
spec:
replicas: 1
selector:
matchLabels:
run: openindoor-pgadmin
strategy:
type: Recreate
template:
metadata:
labels:
run: openindoor-pgadmin
spec:
containers:
- name: openindoor-pgadmin
image: dpage/pgadmin4
env:
- name: PGADMIN_DEFAULT_EMAIL
value: [email protected]
- name: PGADMIN_DEFAULT_PASSWORD
value: admin
- name: PGADMIN_LISTEN_ADDRESS
value: 0.0.0.0
volumeMounts:
- mountPath: /var/lib/pgadmin
name: openindoor-pgadmin-storage
ports:
- containerPort: 80
volumes:
- name: openindoor-pgadmin-storage
persistentVolumeClaim:
claimName: openindoor-pgadmin-pvc