108 lines
2.6 KiB
YAML
108 lines
2.6 KiB
YAML
---
|
|
# Lux Go Indexer - Mainnet C-Chain
|
|
# Replaces Explorer backend for mainnet (chain ID 96369)
|
|
# Image: ghcr.io/luxfi/indexer:0.1.0 (Go 1.25, multi-arch)
|
|
# Uses shared lux-sql (mainnet StatefulSet
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lux-indexer-mainnet
|
|
namespace: lux-explorer
|
|
labels:
|
|
app: lux-indexer
|
|
network: mainnet
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
selector:
|
|
matchLabels:
|
|
app: lux-indexer
|
|
network: mainnet
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lux-indexer
|
|
network: mainnet
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: hanzo
|
|
- name: registry-hanzo
|
|
- name: ghcr-luxfi
|
|
terminationGracePeriodSeconds: 30
|
|
containers:
|
|
- name: indexer
|
|
image: ghcr.io/luxfi/indexer:0.1.0
|
|
imagePullPolicy: Always
|
|
args:
|
|
- "--chain=cchain"
|
|
- "--port=4000"
|
|
- "--poll=15s"
|
|
env:
|
|
- name: RPC_ENDPOINT
|
|
value: "http://luxd-headless.lux-mainnet.svc.cluster.local:9630/v1/chain/C/rpc"
|
|
- name: DATABASE_URL
|
|
value: "postgresql://explorer:[email protected]:5432/indexer?sslmode=disable"
|
|
- name: HTTP_PORT
|
|
value: "4000"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: indexer-config-mainnet
|
|
ports:
|
|
- name: http
|
|
containerPort: 4000
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 5
|
|
startupProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 5
|
|
failureThreshold: 30
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: lux-indexer-mainnet
|
|
namespace: lux-explorer
|
|
labels:
|
|
app: lux-indexer
|
|
network: mainnet
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: lux-indexer
|
|
network: mainnet
|
|
ports:
|
|
- name: http
|
|
port: 4000
|
|
targetPort: http
|
|
protocol: TCP
|