feat(k3s): add trade-ingestor deployment
This commit is contained in:
54
kustomize/base/ingestor/deployment.yaml
Normal file
54
kustomize/base/ingestor/deployment.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user