forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnear-devnet.yaml
66 lines (65 loc) · 1.42 KB
/
near-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
apiVersion: v1
kind: Service
metadata:
labels:
app: near
name: near
spec:
ports:
- name: node
port: 3030
targetPort: node
selector:
app: near
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: near
name: near
spec:
replicas: 1
selector:
matchLabels:
app: near
serviceName: near
template:
metadata:
labels:
app: near
spec:
containers:
- name: near-node
image: near-node
env:
# this still results in DEBUG logs from "stats", but `warn,stats=warn` didn't work
- name: RUST_LOG
value: warn
command:
- /bin/sh
- -c
# because the above still left logs, redirecting stderr
- "/tmp/start_node.sh 2> /dev/null"
ports:
- containerPort: 3030
name: node
protocol: TCP
- containerPort: 3031
name: webserver
protocol: TCP
readinessProbe:
tcpSocket:
port: 3030
- name: near-deploy
image: near-deploy
command:
- /bin/sh
- -c
- "sh /app/devnet_deploy.sh && touch success && sleep infinity"
readinessProbe:
tcpSocket:
port: 3030
periodSeconds: 1
initialDelaySeconds: 15
restartPolicy: Always