-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
95 lines (92 loc) · 1.6 KB
/
deploy.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
version: "2.0"
endpoints:
BalancedGateway1:
kind: ip
services:
app1:
image: tuhalf/diode-gateway:0.1
expose:
- port: 443
to:
- service: app1
- port: 80
to:
- service: app1
app2:
image: tuhalf/diode-gateway:0.1
expose:
- port: 443
to:
- service: app2
- port: 80
to:
- service: app2
nginx:
image: tuhalf/basic-nodejs-loadbalancer:0.0.1
depends_on:
- app1
- app2
expose:
- port: 443
as: 443
to:
- global: true
ip: BalancedGateway1
- port: 80
as: 80
to:
- global: true
ip: BalancedGateway1
profiles:
compute:
app1:
resources:
cpu:
units: 0.1
memory:
size: 512Mi
storage:
size: 512Mi
app2:
resources:
cpu:
units: 0.1
memory:
size: 512Mi
storage:
size: 512Mi
nginx:
resources:
cpu:
units: 0.1
memory:
size: 512Mi
storage:
size: 1024Mi
placement:
akash:
attributes:
ip-lease: "true"
pricing:
app1:
denom: uakt
amount: 10000
app2:
denom: uakt
amount: 10000
nginx:
denom: uakt
amount: 10000
deployment:
app1:
akash:
profile: app1
count: 1
app2:
akash:
profile: app2
count: 1
nginx:
akash:
profile: nginx
count: 1