Commit Graph

3 Commits

Author SHA1 Message Date
douxu 4c57c37c26 refactor: sync logger improvements from modelrt to eventrt
- add LokiConfig struct and Loki field to LoggerConfig for dev direct-push
  - replace getEncoder/getLogWriter with mode-aware encoder and getWriteSyncer
    (colored console in dev, JSON in container; stdout instead of stderr)
  - add containerFields() to inject K8s pod/namespace/node as global log fields
  - add loki_syncer.go: async batched push to Loki with 512-entry channel
  - introduce makeLogFieldsSkip/getLoggerCallerInfoSkip for wrapper call-frame support
  - expose ErrorSkip/WarnSkip/InfoSkip facade functions for skip-frame logging
  - add loki.endpoint placeholder to eventrt-configmap.yaml for self-documentation
2026-06-08 13:58:48 +08:00
douxu 04d81cedce chore: update k8s deploy config for local Minikube dev environment
- add eventrt-certs-secret.sh helper script for creating cert secret
  - update configmap: use K8s service DNS names for mongodb and jaeger
  - switch deploy_env to development and image to local eventrt:v1
  - add explicit command entrypoint to deployment manifest
  - update mongodb credentials to match local dev setup
2026-06-05 16:38:48 +08:00
douxu 2a1929a180 feat: add Kubernetes deployment manifests and hardened Dockerfile
- add multi-stage scratch-based Dockerfile with non-root user and mTLS cert support
  - add K8s Deployment, Service, ConfigMap, and Secret manifests with security hardening
  - bind MONGODB_PASSWORD and SERVICE_SECRET_KEY from environment variables via viper
  - restructure deploy/ directory and remove unused modelrt.cnf
  - bump Go version to 1.26.3 and add event-flow-analysis doc
2026-05-29 11:09:03 +08:00