forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyth.yaml
47 lines (47 loc) · 877 Bytes
/
pyth.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
---
apiVersion: v1
kind: Service
metadata:
name: pyth
labels:
app: pyth
spec:
clusterIP: None
selector:
app: pyth
ports:
- port: 4242
name: pyth-accounts
protocol: TCP
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pyth
spec:
selector:
matchLabels:
app: pyth
serviceName: pyth
template:
metadata:
labels:
app: pyth
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 0
containers:
- name: pyth-publisher
image: pyth
command:
- python3
- /opt/pyth/pyth_publisher.py
readinessProbe:
tcpSocket:
port: 2000
periodSeconds: 1
failureThreshold: 300
ports:
- containerPort: 4242
name: pyth-accounts
protocol: TCP