feat: add solana-ingester deployment for real-time market data
- Create solana-ingester Deployment + Service in trading-platform/ (uses same data-service image, runs WebSocket ingester mode) - Add solana-ingester ConfigMap (HELIUS_RPC_ENDPOINT, JUPITER_API_URL, KAFKA_BROKER, KAFKA_TOPIC) - Add helius-api-key and jupiter-api-key placeholders to trading-secrets.yaml (TODO: replace with real values and re-encrypt with SOPS) - Update kustomization to include new resources
This commit is contained in:
parent
c587a707a6
commit
e24e82107d
7 changed files with 118 additions and 0 deletions
|
|
@ -0,0 +1,81 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: trading-solana-ingester
|
||||
namespace: customer1
|
||||
labels:
|
||||
app: trading-solana-ingester
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: trading-solana-ingester
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: trading-solana-ingester
|
||||
annotations:
|
||||
checksum/config: trading-solana-ingester-config
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 30
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: solana-ingester
|
||||
image: ghcr.io/sirius0xdev/trading-data-service:latest
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- solana-ingester
|
||||
ports:
|
||||
- containerPort: 8002
|
||||
name: http
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: trading-solana-ingester-config
|
||||
env:
|
||||
- name: HELIUS_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: trading-platform-secrets
|
||||
key: helius-api-key
|
||||
- name: JUPITER_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: trading-platform-secrets
|
||||
key: jupiter-api-key
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8002
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
failureThreshold: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8002
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8002
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: trading-solana-ingester
|
||||
namespace: customer1
|
||||
labels:
|
||||
app: trading-solana-ingester
|
||||
spec:
|
||||
selector:
|
||||
app: trading-solana-ingester
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8002
|
||||
name: http
|
||||
type: ClusterIP
|
||||
Loading…
Reference in a new issue