forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
algorand-devnet.yaml
97 lines (97 loc) · 2.16 KB
/
algorand-devnet.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
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
apiVersion: v1
kind: Service
metadata:
labels:
app: algorand
name: algorand
spec:
ports:
- name: postgres
port: 5432
protocol: TCP
- name: algod
port: 4001
targetPort: algod
- name: kmd
port: 4002
targetPort: kmd
- name: indexer
port: 8980
targetPort: indexer
selector:
app: algorand
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: algorand
name: algorand
spec:
replicas: 1
selector:
matchLabels:
app: algorand
serviceName: algorand
template:
metadata:
labels:
app: algorand
spec:
containers:
- image: postgres:13-alpine
name: algorand-postgres
ports:
- containerPort: 5432
resources: {}
env:
- name: POSTGRES_USER
value: algorand
- name: POSTGRES_PASSWORD
value: algorand
- name: POSTGRES_DB
value: indexer_db
- name: algorand-algod
image: algorand-algod
command:
- /bin/sh
- -c
- /opt/start_algod.sh
ports:
- containerPort: 4001
name: algod
protocol: TCP
- containerPort: 4002
name: kmd
protocol: TCP
readinessProbe:
tcpSocket:
port: 4001
- name: algorand-indexer
image: algorand-indexer
command:
- /bin/sh
- -c
- "/tmp/start.sh && echo success && sleep infinity"
ports:
- containerPort: 8980
name: indexer
protocol: TCP
readinessProbe:
tcpSocket:
port: 8980
- name: algorand-contracts
image: algorand-contracts
command:
- /bin/sh
- -c
- "sh deploy.sh && touch success && sleep infinity"
readinessProbe:
exec:
command:
- test
- -e
- "success"
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always