From b46d7d85c6fa552284fef7ab68de5e72aa25dff8 Mon Sep 17 00:00:00 2001 From: codex Date: Sun, 1 Feb 2026 18:13:24 +0100 Subject: [PATCH] chore(staging): add candles-cache-worker deployment --- .../base/candles-cache-worker/deployment.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 kustomize/base/candles-cache-worker/deployment.yaml diff --git a/kustomize/base/candles-cache-worker/deployment.yaml b/kustomize/base/candles-cache-worker/deployment.yaml new file mode 100644 index 0000000..eda07aa --- /dev/null +++ b/kustomize/base/candles-cache-worker/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: candles-cache-worker + annotations: + argocd.argoproj.io/sync-wave: "6" +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: candles-cache-worker + template: + metadata: + labels: + app.kubernetes.io/name: candles-cache-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: CANDLES_SYMBOLS + value: SOL-PERP,PUMP-PERP + - name: CANDLES_SOURCES + value: any + - name: CANDLES_TFS + value: 1s,3s,5s,15s,30s,1m,3m,5m,15m,30m,1h,4h,12h,1d + - name: CANDLES_TARGET_POINTS + value: "1024" + - name: CANDLES_POLL_MS + value: "5000" + command: ["node", "/app/worker.mjs"] + volumeMounts: + - name: script + mountPath: /app/worker.mjs + subPath: worker.mjs + readOnly: true + volumes: + - name: script + configMap: + name: candles-cache-worker-script