---
apiVersion: v1
kind: Service
metadata:
name: spy-relayer
labels:
app: spy-relayer
spec:
clusterIP: None
selector:
ports:
- port: 8083
name: prometheus
protocol: TCP
apiVersion: apps/v1
kind: StatefulSet
matchLabels:
serviceName: spy-relayer
replicas: 1
template:
restartPolicy: Always
terminationGracePeriodSeconds: 0
containers:
- name: spy-relayer
image: spy-relay-image
command:
- npm
- run
- --prefix
- /app/relayer/spy_relayer/
- tilt_relayer
- containerPort: 8083
tty: true
readinessProbe:
tcpSocket:
port: 2000
periodSeconds: 1
failureThreshold: 300