Copy over k8s yamls from Wormhole
This commit is contained in:
parent
4e7c3ab315
commit
e96d8f084b
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue