ebea70573b
- Repository structure for all services, infra, lakehouse, dashboards - K8s manifests targeting stonks-oracle namespace with GHCR images - Ingress via Traefik with ca-issuer TLS for internal services - ConfigMap wired to existing cluster services (pg, redis, minio, ollama) - GitHub Actions workflow for lint, test, multi-service container builds - Dockerfile with build-arg CMD per service - Makefile for local build/push/deploy - Steering rules for TDD workflow, K8s conventions, project context - Agent hooks for lint-on-save, test-on-save, k8s-validate, phase-commit - Ruff linter config, all lint issues fixed - 14 passing tests for schemas, config, redis keys - PostgreSQL migrations, Trino catalogs, Superset config, MinIO lifecycle
1.6 KiB
1.6 KiB
Kubernetes Manifests — Stonks Oracle
All manifests target the stonks-oracle namespace.
Prerequisites (already running in cluster)
postgresql-service— PostgreSQLredis-service— Redisminio-service/minio-operator— MinIOollama-service— Ollama LLM
Shared Configuration
namespace.yaml— namespace definitionconfigmap.yaml— environment config referencing existing cluster servicessecrets.yaml— credentials (update before deploying)
Application Workloads
symbol-registry.yaml— company/watchlist/source management APIscheduler.yaml— polling orchestratoringestion-worker.yaml— fetches external data, stores raw artifactsparser-worker.yaml— HTML-to-text, normalization, quality scoringextractor-worker.yaml— Ollama structured extractionaggregation-worker.yaml— trend summaries and signal aggregationrecommendation-worker.yaml— trade recommendation generationrisk-engine.yaml— risk controls and trade eligibility APIbroker-adapter.yaml— paper/live trading adapterlake-publisher.yaml— operational-to-analytical fact publisherquery-api.yaml— analytics and admin API
Analytics Infrastructure
hive-metastore.yaml— Hive Metastore for Trino catalogtrino.yaml— SQL query engine with Hive + Iceberg catalogssuperset.yaml— dashboard and exploration layer
Deploy
kubectl apply -f infra/k8s/namespace.yaml
kubectl apply -f infra/k8s/configmap.yaml
kubectl apply -f infra/k8s/secrets.yaml
kubectl apply -f infra/k8s/