forked from akash-network/node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
127 lines (113 loc) · 1.97 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
---
version: "1.5"
include:
- "foo.yml"
- "https://foo.yml"
services:
db-master:
image: postgres
expose:
- port: 5432
proto: tcp
to:
- service: db-pool
- service: db-pool
global: true
- service: db-slave
global: true
db-slave:
image: postgres-slave
depends-on:
- service: db-master
expose:
- port: 5432
proto: tcp
to:
- service: db-pool
db-pool:
image: db-pool
depends-on:
- service: db-slave
- service: db-master
expose:
- port: 5432
proto: tcp
to:
- service: web
web:
image: foo:latest
env:
- "API_KEY=996fb92427ae41e4649b934ca495991b785"
port: 80
depends-on:
- service: db-pool
expose:
- port: 443
as: 8080
accept:
- foo.com
to:
- global: true
profiles:
compute:
web:
cpu: "0.01"
memory: "128Mi"
storage: "512Mi"
db:
cpu: "0.01"
memory: "128Mi"
storage: "1Gi"
db-pool:
cpu: "0.01"
memory: "128Mi"
storage: "512Mi"
placement:
westcoast:
attributes:
region: us-west
pricing:
web: 10u
db: 50u
db-pool:
denom: akash
amount: 30
eastcoast:
attributes:
region: us-east
pricing:
web:
denom: akash
amount: 30
db:
denom: akash
amount: 60
db-pool:
denom: akash
amount: 40
deployment:
db-master:
westcoast:
profile: db
count: 1
db-slave:
westcoast:
profile: db
count: 1
eastcoast:
profile: db
count: 1
db-pool:
westcoast:
profile: db-pool
count: 1
eastcoast:
profile: db-pool
count: 1
web:
westcoast:
profile: web
count: 2
eastcoast:
profile: web
count: 2