117 lines
3.3 KiB
YAML
117 lines
3.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dlob-publisher-all
|
|
namespace: trade-r001-canary
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: dlob-publisher-all
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: dlob-publisher-all
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: publisher
|
|
image: gitea.mpabi.pl/trade/trade-dlob-server:grpc-teardown-fix-20260402-113736
|
|
imagePullPolicy: IfNotPresent
|
|
command:
|
|
- node
|
|
- /lib/publishers/dlobPublisher.js
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
env:
|
|
- name: FETCH_CONNECT_TIMEOUT_MS
|
|
value: "15000"
|
|
- name: FETCH_HEADERS_TIMEOUT_MS
|
|
value: "300000"
|
|
- name: FETCH_BODY_TIMEOUT_MS
|
|
value: "300000"
|
|
- name: RUNNING_LOCAL
|
|
value: "true"
|
|
- name: LOCAL_CACHE
|
|
value: "true"
|
|
- name: ENV
|
|
value: mainnet-beta
|
|
- name: USE_ORDER_SUBSCRIBER
|
|
value: "true"
|
|
- name: USE_GRPC
|
|
value: "true"
|
|
- name: USE_WEBSOCKET
|
|
value: "true"
|
|
- name: DISABLE_GPA_REFRESH
|
|
value: "true"
|
|
- name: ENABLE_TOB_MONITORING
|
|
value: "false"
|
|
- name: ELASTICACHE_HOST
|
|
value: dlob-redis
|
|
- name: ELASTICACHE_PORT
|
|
value: "6379"
|
|
- name: REDIS_CLIENT
|
|
value: DLOB_ALL
|
|
- name: GRPC_CLIENT
|
|
value: yellowstone
|
|
- name: ENDPOINT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: trade-dlob-rpc
|
|
key: ENDPOINT
|
|
- name: WS_ENDPOINT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: trade-dlob-rpc
|
|
key: WS_ENDPOINT
|
|
- name: GRPC_ENDPOINT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: trade-dlob-rpc
|
|
key: GRPC_ENDPOINT
|
|
- name: TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: trade-dlob-rpc
|
|
key: TOKEN
|
|
- name: KILLSWITCH_SLOT_DIFF_THRESHOLD
|
|
value: "1000000000"
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /startup
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 24
|
|
startupProbe:
|
|
httpGet:
|
|
path: /startup
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 180
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /startup
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 20
|
|
timeoutSeconds: 3
|
|
failureThreshold: 10
|