feat: Add hybrid deployment with Docker and Kubernetes

- Docker Compose for infrastructure (MongoDB, Redis, Kafka, Zookeeper)
- Docker for central control (Scheduler, Monitor, Language Sync)
- K8s for scalable workers (RSS, Google Search, Translator, AI Generator, Image Generator)
- Automatic scaling with HPA (Horizontal Pod Autoscaler)
- Comprehensive deployment scripts and documentation
- Updated README with hybrid deployment guide
This commit is contained in:
jungwoo choi
2025-09-28 21:03:14 +09:00
parent 1ff9afe6f4
commit 46b5135f45
10 changed files with 872 additions and 0 deletions

View File

@ -0,0 +1,38 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: pipeline-config
namespace: site11-pipeline
data:
# Redis 연결 (Docker 호스트)
REDIS_URL: "redis://host.docker.internal:6379"
# MongoDB 연결 (Docker 호스트)
MONGODB_URL: "mongodb://host.docker.internal:27017"
DB_NAME: "ai_writer_db"
# 로깅
LOG_LEVEL: "INFO"
# 워커 설정
WORKER_COUNT: "2"
BATCH_SIZE: "10"
# 큐 설정
RSS_ENQUEUE_DELAY: "1.0"
GOOGLE_SEARCH_DELAY: "2.0"
TRANSLATION_DELAY: "1.0"
---
apiVersion: v1
kind: Secret
metadata:
name: pipeline-secrets
namespace: site11-pipeline
type: Opaque
stringData:
# API Keys (실제 값)
DEEPL_API_KEY: "3abbc796-2515-44a8-972d-22dcf27ab54a"
OPENAI_API_KEY: "sk-openai-api-key-here" # OpenAI API 키 필요
CLAUDE_API_KEY: "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"
SERP_API_KEY: "serp-api-key-here" # SERP API 키 필요