Complete Persistent Storage Manifest/SDL Example
1
version: "2.0"
2
services:
3
postgres:
4
image: postgres
5
params:
6
storage:
7
data:
8
mount: /var/lib/postgres
9
grafana:
10
image: grafana/grafana
11
expose:
12
- port: 3000
13
as: 80
14
to:
15
- global: true
16
accept:
17
- webdistest.localhost
18
params:
19
storage:
20
data:
21
mount: /var/lib/grafana
22
profiles:
23
compute:
24
grafana-profile:
25
resources:
26
cpu:
27
units: 1
28
memory:
29
size: 1Gi
30
storage:
31
- size: 512Mi
32
- name: data
33
size: 1Gi
34
attributes:
35
persistent: true
36
class: beta2
37
postgres-profile:
38
resources:
39
cpu:
40
units: 1
41
memory:
42
size: 1Gi
43
storage:
44
- size: 512Mi
45
- name: data
46
size: 1Gi
47
attributes:
48
persistent: true
49
class: beta2
50
placement:
51
westcoast:
52
attributes:
53
region: us-west
54
pricing:
55
grafana-profile:
56
denom: uakt
57
amount: 1000
58
postgres-profile:
59
denom: uakt
60
amount: 7000
61
deployment:
62
grafana:
63
westcoast:
64
profile: grafana-profile
65
count: 1
66
postgres:
67
westcoast:
68
profile: postgres-profile
69
count: 1
Copied!
Copy link