diff --git a/kustomize/base/dlob-worker/deployment.yaml b/kustomize/base/dlob-worker/deployment.yaml new file mode 100644 index 0000000..c18ce9d --- /dev/null +++ b/kustomize/base/dlob-worker/deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: dlob-worker + annotations: + argocd.argoproj.io/sync-wave: "4" +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: dlob-worker + template: + metadata: + labels: + app.kubernetes.io/name: dlob-worker + 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_HTTP_URL + value: https://dlob.drift.trade + - name: DLOB_MARKETS + value: PUMP-PERP,SOL-PERP,BONK-PERP,BTC-PERP,ETH-PERP + - name: DLOB_POLL_MS + value: "500" + - name: DLOB_DEPTH + value: "10" + command: ["node", "/app/worker.mjs"] + volumeMounts: + - name: script + mountPath: /app/worker.mjs + subPath: worker.mjs + readOnly: true + volumes: + - name: script + configMap: + name: dlob-worker-script