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