- Limit DLOB workers/ingestors to SOL-PERP, DOGE-PERP, JUP-PERP across base and staging config. - Set publisher market ids to [0,7,24] for drift protocol. - Add overlay patches for dlob-publisher and dlob-server to use wg0 RPC endpoints 10.66.66.1:8899/8900 in staging and prod. - Extend Agave dashboard and add PrometheusRules for RPC up/lag/I/O alerts. - Ensure overlays reference new patches for automated ArgoCD rollouts.
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dlob-slippage-worker-drift
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "6"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: dlob-slippage-worker-drift
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: dlob-slippage-worker-drift
|
|
spec:
|
|
containers:
|
|
- name: worker
|
|
image: node:20-slim
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: HASURA_GRAPHQL_URL
|
|
value: http://hasura:8080/v1/graphql
|
|
- name: HASURA_ADMIN_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: trade-hasura
|
|
key: HASURA_GRAPHQL_ADMIN_SECRET
|
|
- name: DLOB_SOURCE
|
|
value: drift
|
|
- name: DLOB_MARKETS
|
|
value: SOL-PERP,DOGE-PERP,JUP-PERP
|
|
- name: DLOB_POLL_MS
|
|
value: "1000"
|
|
- name: DLOB_SLIPPAGE_SIZES_USD
|
|
value: "0.1,0.2,0.5,1,2,5,10,25,50,100,250,500,1000,5000,10000,50000"
|
|
- name: PRICE_PRECISION
|
|
value: "1000000"
|
|
- name: BASE_PRECISION
|
|
value: "1000000000"
|
|
command: ["node", "/app/worker.mjs"]
|
|
volumeMounts:
|
|
- name: script
|
|
mountPath: /app/worker.mjs
|
|
subPath: worker.mjs
|
|
readOnly: true
|
|
volumes:
|
|
- name: script
|
|
configMap:
|
|
name: dlob-slippage-worker-script
|