백엔드 서비스 AKS 배포 및 설정 완료
- Kubernetes 매니페스트 파일 생성 (7개 서비스) * user-service, event-service, ai-service, content-service * participation-service, analytics-service, distribution-service * 공통 리소스: Ingress, ConfigMap, Secret, ImagePullSecret - analytics-service 배포 문제 해결 * Hibernate PostgreSQL dialect 추가 * DB 자격증명 수정 (eventuser/Hi5Jessica!) * analytics_db 데이터베이스 생성 - content-service Probe 경로 수정 * Context path 포함 (/api/v1/content/actuator/health) - distribution-service 신규 배포 * Docker 이미지 빌드 및 ACR 푸시 * K8s 매니페스트 생성 및 배포 * Ingress 경로 추가 (/distribution) - Gradle bootJar 설정 추가 * 5개 서비스에 archiveFileName 설정 - 배포 가이드 문서 추가 * deployment/k8s/deploy-k8s-guide.md * claude/deploy-k8s-back.md * deployment/container/build-image.md 업데이트 배포 완료: 모든 백엔드 서비스(7개) 정상 실행 중 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cm-ai-service
|
||||
namespace: kt-event-marketing
|
||||
data:
|
||||
# Server Configuration
|
||||
SERVER_PORT: "8083"
|
||||
|
||||
# Redis Configuration (service-specific)
|
||||
REDIS_DATABASE: "3"
|
||||
REDIS_TIMEOUT: "3000"
|
||||
REDIS_POOL_MIN: "2"
|
||||
|
||||
# Kafka Configuration (service-specific)
|
||||
KAFKA_CONSUMER_GROUP: "ai-service-consumers"
|
||||
|
||||
# Kafka Topics Configuration
|
||||
KAFKA_TOPICS_AI_JOB: "ai-event-generation-job"
|
||||
KAFKA_TOPICS_AI_JOB_DLQ: "ai-event-generation-job-dlq"
|
||||
|
||||
# AI Provider Configuration
|
||||
AI_PROVIDER: "CLAUDE"
|
||||
AI_CLAUDE_API_URL: "https://api.anthropic.com/v1/messages"
|
||||
AI_CLAUDE_ANTHROPIC_VERSION: "2023-06-01"
|
||||
AI_CLAUDE_MODEL: "claude-sonnet-4-5-20250929"
|
||||
AI_CLAUDE_MAX_TOKENS: "4096"
|
||||
AI_CLAUDE_TEMPERATURE: "0.7"
|
||||
AI_CLAUDE_TIMEOUT: "300000"
|
||||
|
||||
# Circuit Breaker Configuration
|
||||
RESILIENCE4J_CIRCUITBREAKER_FAILURE_RATE_THRESHOLD: "50"
|
||||
RESILIENCE4J_CIRCUITBREAKER_SLOW_CALL_RATE_THRESHOLD: "50"
|
||||
RESILIENCE4J_CIRCUITBREAKER_SLOW_CALL_DURATION_THRESHOLD: "60s"
|
||||
RESILIENCE4J_CIRCUITBREAKER_PERMITTED_CALLS_HALF_OPEN: "3"
|
||||
RESILIENCE4J_CIRCUITBREAKER_SLIDING_WINDOW_SIZE: "10"
|
||||
RESILIENCE4J_CIRCUITBREAKER_MINIMUM_CALLS: "5"
|
||||
RESILIENCE4J_CIRCUITBREAKER_WAIT_DURATION_OPEN: "60s"
|
||||
RESILIENCE4J_TIMELIMITER_TIMEOUT_DURATION: "300s"
|
||||
|
||||
# Redis Cache TTL Configuration (seconds)
|
||||
CACHE_TTL_RECOMMENDATION: "86400"
|
||||
CACHE_TTL_JOB_STATUS: "86400"
|
||||
CACHE_TTL_TREND: "3600"
|
||||
CACHE_TTL_FALLBACK: "604800"
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL_ROOT: "INFO"
|
||||
LOG_LEVEL_AI: "DEBUG"
|
||||
LOG_LEVEL_KAFKA: "INFO"
|
||||
LOG_LEVEL_REDIS: "INFO"
|
||||
LOG_LEVEL_RESILIENCE4J: "DEBUG"
|
||||
LOG_FILE_NAME: "logs/ai-service.log"
|
||||
LOG_FILE_MAX_SIZE: "10MB"
|
||||
LOG_FILE_MAX_HISTORY: "7"
|
||||
LOG_FILE_TOTAL_CAP: "100MB"
|
||||
@@ -0,0 +1,63 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ai-service
|
||||
namespace: kt-event-marketing
|
||||
labels:
|
||||
app: ai-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ai-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ai-service
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: kt-event-marketing
|
||||
containers:
|
||||
- name: ai-service
|
||||
image: acrdigitalgarage01.azurecr.io/kt-event-marketing/ai-service:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8083
|
||||
name: http
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cm-common
|
||||
- configMapRef:
|
||||
name: cm-ai-service
|
||||
- secretRef:
|
||||
name: secret-common
|
||||
- secretRef:
|
||||
name: secret-ai-service
|
||||
resources:
|
||||
requests:
|
||||
cpu: "256m"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
cpu: "1024m"
|
||||
memory: "1024Mi"
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8083
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
failureThreshold: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health/readiness
|
||||
port: 8083
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health/liveness
|
||||
port: 8083
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: secret-ai-service
|
||||
namespace: kt-event-marketing
|
||||
type: Opaque
|
||||
stringData:
|
||||
# Claude API Key
|
||||
AI_CLAUDE_API_KEY: "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"
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ai-service
|
||||
namespace: kt-event-marketing
|
||||
labels:
|
||||
app: ai-service
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8083
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: ai-service
|
||||
Reference in New Issue
Block a user