wormhole/devnet/p2w-relay.yaml

42 lines
783 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: p2w-relay
labels:
app: p2w-relay
spec:
clusterIP: None
selector:
app: p2w-relay
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: p2w-relay
spec:
selector:
matchLabels:
app: p2w-relay
serviceName: p2w-relay
replicas: 1
template:
metadata:
labels:
app: p2w-relay
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 0
containers:
- name: p2w-relay
image: p2w-relay
command:
- node
- /usr/src/third_party/pyth/p2w-sdk/lib/autorelayer.js
tty: true
readinessProbe:
tcpSocket:
port: 2000
periodSeconds: 1
failureThreshold: 300