From 928e2284ade37b11d97abaa49d3e595434b1dddf Mon Sep 17 00:00:00 2001 From: u1 Date: Tue, 6 Jan 2026 01:40:38 +0000 Subject: [PATCH] feat(k3s): add trade-ingestor deployment --- kustomize/base/ingestor/deployment.yaml | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 kustomize/base/ingestor/deployment.yaml diff --git a/kustomize/base/ingestor/deployment.yaml b/kustomize/base/ingestor/deployment.yaml new file mode 100644 index 0000000..cc55b32 --- /dev/null +++ b/kustomize/base/ingestor/deployment.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: trade-ingestor +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: trade-ingestor + template: + metadata: + labels: + app.kubernetes.io/name: trade-ingestor + spec: + imagePullSecrets: + - name: gitea-registry + containers: + - name: ingestor + image: rv32i.pl/trade/trade-ingestor:k3s-20260106013603 + imagePullPolicy: IfNotPresent + env: + - name: MARKET_NAME + value: "PUMP-PERP" + - name: INTERVAL_MS + value: "1000" + - name: SOURCE + value: "drift_oracle" + - name: INGEST_VIA + value: "hasura" + - name: HASURA_GRAPHQL_URL + value: "http://hasura:8080/v1/graphql" + - name: HASURA_ADMIN_SECRET + valueFrom: + secretKeyRef: + name: trade-hasura + key: HASURA_GRAPHQL_ADMIN_SECRET + volumeMounts: + - name: tokens + mountPath: /app/tokens + readOnly: true + command: + - sh + - -c + args: + - > + npm run ingest:oracle -- \ + --market-name "${MARKET_NAME}" \ + --interval-ms "${INTERVAL_MS}" \ + --source "${SOURCE}" \ + --ingest-via "${INGEST_VIA}" + volumes: + - name: tokens + secret: + secretName: trade-ingestor-tokens