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
41 lines
1.6 KiB
Markdown
41 lines
1.6 KiB
Markdown
# Kubernetes Manifests — Stonks Oracle
|
|
|
|
All manifests target the `stonks-oracle` namespace.
|
|
|
|
## Prerequisites (already running in cluster)
|
|
- `postgresql-service` — PostgreSQL
|
|
- `redis-service` — Redis
|
|
- `minio-service` / `minio-operator` — MinIO
|
|
- `ollama-service` — Ollama LLM
|
|
|
|
## Shared Configuration
|
|
- `namespace.yaml` — namespace definition
|
|
- `configmap.yaml` — environment config referencing existing cluster services
|
|
- `secrets.yaml` — credentials (update before deploying)
|
|
|
|
## Application Workloads
|
|
- `symbol-registry.yaml` — company/watchlist/source management API
|
|
- `scheduler.yaml` — polling orchestrator
|
|
- `ingestion-worker.yaml` — fetches external data, stores raw artifacts
|
|
- `parser-worker.yaml` — HTML-to-text, normalization, quality scoring
|
|
- `extractor-worker.yaml` — Ollama structured extraction
|
|
- `aggregation-worker.yaml` — trend summaries and signal aggregation
|
|
- `recommendation-worker.yaml` — trade recommendation generation
|
|
- `risk-engine.yaml` — risk controls and trade eligibility API
|
|
- `broker-adapter.yaml` — paper/live trading adapter
|
|
- `lake-publisher.yaml` — operational-to-analytical fact publisher
|
|
- `query-api.yaml` — analytics and admin API
|
|
|
|
## Analytics Infrastructure
|
|
- `hive-metastore.yaml` — Hive Metastore for Trino catalog
|
|
- `trino.yaml` — SQL query engine with Hive + Iceberg catalogs
|
|
- `superset.yaml` — dashboard and exploration layer
|
|
|
|
## Deploy
|
|
```bash
|
|
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/
|
|
```
|