CI/CD / render (push) Waiting to run
The primary-network chains answer to either case; one spelling beats two. /v1/chain/c/rpc, /v1/chain/p, /v1/chain/x across the estate. Co-authored-by: Hanzo AI <[email protected]>
85 lines
1.9 KiB
YAML
85 lines
1.9 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dex-api
|
|
namespace: lux-ns
|
|
labels:
|
|
app: dex-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dex-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dex-api
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: ghcr-luxfi
|
|
containers:
|
|
- name: gateway
|
|
# TODO: pin once a semver tag is published to ghcr.io/luxfi/dex-gateway
|
|
# (no semver in GHCR; cluster currently runs :latest)
|
|
image: ghcr.io/luxfi/dex-gateway:0.1.0
|
|
command: ["./gateway"]
|
|
args:
|
|
- "-addr=:8080"
|
|
- "-lux-rpc=http://luxd-headless.lux-mainnet.svc:9630/v1/chain/c/rpc"
|
|
- "-zoo-rpc=http://luxd-headless.lux-mainnet.svc:9630/v1/chain/2Y625Kvdd4wZ5LKx9kLSf1jGALyARmXVN1YsTb4F3Hzv4bPDbp/rpc"
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: dex-api
|
|
namespace: lux-ns
|
|
labels:
|
|
app: dex-api
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
protocol: TCP
|
|
selector:
|
|
app: dex-api
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: dex-api
|
|
namespace: lux-ns
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`dex-api.lux.network`)
|
|
kind: Rule
|
|
services:
|
|
- name: dex-api
|
|
port: 8080
|
|
tls:
|
|
certResolver: letsencrypt
|