File tree 1 file changed +101
-0
lines changed 1 file changed +101
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Project namespace
2
+ apiVersion : v1
3
+ kind : Namespace
4
+ metadata :
5
+ name : project
6
+ ---
7
+ # Postgres dependence
8
+ apiVersion : apps/v1
9
+ kind : Deployment
10
+ metadata :
11
+ name : postgres
12
+ namespace : project
13
+ labels :
14
+ app : postgres
15
+ spec :
16
+ selector :
17
+ matchLabels :
18
+ app : postgres
19
+ strategy :
20
+ type : Recreate
21
+ template :
22
+ metadata :
23
+ labels :
24
+ app : postgres
25
+ spec :
26
+ containers :
27
+ - name : postgres
28
+ image : postgres:15
29
+ env :
30
+ - name : POSTGRES_DB
31
+ value : " postgres"
32
+ - name : POSTGRES_USER
33
+ value : " user"
34
+ - name : POSTGRES_PASSWORD
35
+ value : " password"
36
+ ports :
37
+ - name : postgres
38
+ containerPort : 5432
39
+ ---
40
+ apiVersion : v1
41
+ kind : Service
42
+ metadata :
43
+ name : app
44
+ namespace : project
45
+ labels :
46
+ app : postgres
47
+ spec :
48
+ ports :
49
+ - port : 5432
50
+ selector :
51
+ app : postgres
52
+ clusterIP : None
53
+ ---
54
+ # Run controller
55
+ apiVersion : apps/v1
56
+ kind : Deployment
57
+ metadata :
58
+ name : controller
59
+ namespace : project
60
+ labels :
61
+ app : controller
62
+ spec :
63
+ selector :
64
+ matchLabels :
65
+ app : controller
66
+ template :
67
+ metadata :
68
+ labels :
69
+ app : controller
70
+ spec :
71
+ containers :
72
+ - name : controller
73
+ image : ext-cardano-dbsync:latest
74
+ ports :
75
+ - containerPort : 80
76
+ env :
77
+ - name : ADDR
78
+ value : " 0.0.0.0:80"
79
+ - name : DB_URL_MAINNET
80
+ value :
" postgres://user:[email protected] :5432/postgres?sslmode=disable"
81
+ - name : DB_URL_PREPROD
82
+ value :
" postgres://user:[email protected] :5432/postgres?sslmode=disable"
83
+ - name : DB_URL_PREVIEW
84
+ value :
" postgres://user:[email protected] :5432/postgres?sslmode=disable"
85
+ ---
86
+ apiVersion : v1
87
+ kind : Service
88
+ metadata :
89
+ name : api
90
+ namespace : project
91
+ labels :
92
+ app : controller
93
+ spec :
94
+ selector :
95
+ app : controller
96
+ type : ClusterIP
97
+ ports :
98
+ - name : controller
99
+ port : 80
100
+ targetPort : 80
101
+ protocol : TCP
You can’t perform that action at this time.
0 commit comments