43 lines
794 B
YAML
43 lines
794 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:
|
|
- npm
|
|
- start
|
|
workingDir: /usr/src/third_party/pyth/p2w-relay/
|
|
tty: true
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 2000
|
|
periodSeconds: 1
|
|
failureThreshold: 300
|