mirror of
https://github.com/luxfi/price.git
synced 2026-10-30 15:21:24 +00:00
- Add K8s manifests (deployment, service, ingress) - Switch from SSH deploy to DigitalOcean K8s cluster - Rename service from pricing to markets - Use cert-manager for TLS certificates - 2 replicas with health checks
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: markets
|
|
namespace: lux-gateway
|
|
labels:
|
|
app: markets
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: markets
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: markets
|
|
spec:
|
|
containers:
|
|
- name: markets
|
|
image: ghcr.io/luxfi/pricing:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: COINGECKO_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: markets-secrets
|
|
key: coingecko-api-key
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
imagePullSecrets:
|
|
- name: ghcr-secret
|