phase 16: React dashboard with full platform control and analytics
This commit is contained in:
@@ -99,4 +99,29 @@ spec:
|
||||
name: trino
|
||||
port:
|
||||
number: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: stonks-dashboard-https
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.ingress.hosts.dashboard }}
|
||||
secretName: stonks-dashboard-tls
|
||||
rules:
|
||||
- host: {{ .Values.ingress.hosts.dashboard }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: dashboard
|
||||
port:
|
||||
number: 80
|
||||
{{- end }}
|
||||
|
||||
@@ -135,6 +135,18 @@ services:
|
||||
probes:
|
||||
readiness: { path: /docs, port: 8000, initialDelay: 5, period: 10 }
|
||||
|
||||
dashboard:
|
||||
replicas: 1
|
||||
image: dashboard
|
||||
tier: frontend
|
||||
port: 80
|
||||
resources:
|
||||
requests: { cpu: 50m, memory: 64Mi }
|
||||
limits: { cpu: 200m, memory: 128Mi }
|
||||
probes:
|
||||
readiness: { path: /, port: 80, initialDelay: 3, period: 10 }
|
||||
liveness: { path: /, port: 80, initialDelay: 5, period: 30 }
|
||||
|
||||
## ConfigMap data
|
||||
config:
|
||||
POSTGRES_HOST: "postgresql-rw.postgresql-service.svc.cluster.local"
|
||||
@@ -208,6 +220,7 @@ ingress:
|
||||
hosts:
|
||||
queryApi: stonks-api.celestium.life
|
||||
symbolRegistry: stonks-registry.celestium.life
|
||||
dashboard: stonks.celestium.life
|
||||
superset: stonks-dash.celestium.life
|
||||
trino: stonks-trino.celestium.life
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
-- Saved SQL queries for the analytics explorer
|
||||
CREATE TABLE IF NOT EXISTS saved_queries (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
name TEXT NOT NULL,
|
||||
description TEXT,
|
||||
sql_text TEXT NOT NULL,
|
||||
created_by TEXT NOT NULL DEFAULT 'operator',
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_saved_queries_name ON saved_queries (name);
|
||||
Reference in New Issue
Block a user