Copy over k8s yamls from Wormhole

This commit is contained in:
Stan Drozd 2021-11-08 12:02:03 +01:00
parent 4e7c3ab315
commit e96d8f084b
2 changed files with 91 additions and 0 deletions

49
p2w-attest.yaml Normal file
View File

@ -0,0 +1,49 @@
---
apiVersion: v1
kind: Service
metadata:
name: p2w-attest
labels:
app: p2w-attest
spec:
ports:
- port: 4343
name: p2w-attest
protocol: TCP
clusterIP: None
selector:
app: p2w-attest
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: p2w-attest
spec:
selector:
matchLabels:
app: p2w-attest
serviceName: p2w-attest
replicas: 1
template:
metadata:
labels:
app: p2w-attest
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 0
containers:
- name: p2w-attest
image: p2w-attest
command:
- python3
- /usr/src/pyth/p2w_autoattest.py
tty: true
readinessProbe:
tcpSocket:
port: 2000
periodSeconds: 1
failureThreshold: 300
ports:
- containerPort: 4343
name: p2w-attest
protocol: TCP

42
p2w-relay.yaml Normal file
View File

@ -0,0 +1,42 @@
---
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:
- npm
- start
workingDir: /usr/src/third_party/pyth/p2w-relay/
tty: true
readinessProbe:
tcpSocket:
port: 2000
periodSeconds: 1
failureThreshold: 300