2026-05-02 21:47:27 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: trade-dashboard
|
|
|
|
|
namespace: customer1
|
|
|
|
|
labels:
|
|
|
|
|
app: trade-dashboard
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: trade-dashboard
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: trade-dashboard
|
|
|
|
|
annotations:
|
|
|
|
|
checksum/config: trade-dashboard-config
|
|
|
|
|
spec:
|
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
|
containers:
|
|
|
|
|
- name: dashboard
|
2026-05-02 18:31:59 -04:00
|
|
|
image: ghcr.io/sirius0xdev/trade-dashboard:latest
|
2026-05-02 21:47:27 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8000
|
|
|
|
|
name: http
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
limits:
|
|
|
|
|
cpu: 500m
|
|
|
|
|
memory: 512Mi
|
|
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: trade-dashboard-config
|
|
|
|
|
env:
|
2026-05-02 23:35:04 +00:00
|
|
|
- name: DB_USER
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: trading-db-credentials
|
|
|
|
|
key: username
|
2026-05-02 21:47:27 +00:00
|
|
|
- name: DB_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: trading-db-credentials
|
|
|
|
|
key: password
|
|
|
|
|
startupProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/health
|
|
|
|
|
port: 8000
|
|
|
|
|
initialDelaySeconds: 15
|
|
|
|
|
periodSeconds: 5
|
|
|
|
|
failureThreshold: 6
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/health
|
|
|
|
|
port: 8000
|
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 30
|