2022-11-17 07:37:29 -08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: indexer-api
|
|
|
|
labels:
|
|
|
|
app: indexer-api
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: indexer-api
|
|
|
|
ports:
|
|
|
|
- port: 8000
|
|
|
|
name: indexer-api
|
|
|
|
protocol: TCP
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: indexer-api
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: indexer-api
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: indexer-api
|
|
|
|
spec:
|
|
|
|
restartPolicy: Always
|
|
|
|
terminationGracePeriodSeconds: 0
|
|
|
|
containers:
|
|
|
|
- name: indexer-api
|
|
|
|
image: indexer-api:latest
|
|
|
|
env:
|
|
|
|
- name: WORMSCAN_DB_URL
|
2022-12-15 07:51:15 -08:00
|
|
|
value: mongodb://mongo-0.mongo/?replicaSet=rs0
|
2022-11-17 07:37:29 -08:00
|
|
|
- name: WORMSCAN_PORT
|
|
|
|
value: "8000"
|
2023-01-05 11:40:24 -08:00
|
|
|
- name: WORMSCAN_CACHE_ENABLED
|
|
|
|
value: "false"
|
2022-11-17 07:37:29 -08:00
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 8000
|
|
|
|
periodSeconds: 1
|
|
|
|
failureThreshold: 300
|
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
|
|
|
name: server
|
|
|
|
protocol: TCP
|