백엔드 서비스 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,38 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cm-analytics-service
|
||||
namespace: kt-event-marketing
|
||||
data:
|
||||
# Server Configuration
|
||||
SERVER_PORT: "8086"
|
||||
|
||||
# Database Configuration
|
||||
DB_HOST: "analytic-postgresql"
|
||||
DB_PORT: "5432"
|
||||
DB_NAME: "analytics_db"
|
||||
DB_USERNAME: "eventuser"
|
||||
|
||||
# Redis Configuration (service-specific)
|
||||
REDIS_DATABASE: "5"
|
||||
|
||||
# Kafka Configuration (service-specific)
|
||||
KAFKA_ENABLED: "true"
|
||||
KAFKA_CONSUMER_GROUP_ID: "analytics-service"
|
||||
|
||||
# Sample Data Configuration (MVP only)
|
||||
SAMPLE_DATA_ENABLED: "true"
|
||||
|
||||
# Batch Scheduler Configuration
|
||||
BATCH_REFRESH_INTERVAL: "300000" # 5분 (밀리초)
|
||||
BATCH_INITIAL_DELAY: "30000" # 30초 (밀리초)
|
||||
BATCH_ENABLED: "true"
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL_APP: "INFO"
|
||||
LOG_LEVEL_WEB: "INFO"
|
||||
LOG_LEVEL_SQL: "WARN"
|
||||
LOG_LEVEL_SQL_TYPE: "WARN"
|
||||
SHOW_SQL: "false"
|
||||
DDL_AUTO: "update"
|
||||
LOG_FILE: "logs/analytics-service.log"
|
||||
@@ -0,0 +1,63 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: analytics-service
|
||||
namespace: kt-event-marketing
|
||||
labels:
|
||||
app: analytics-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: analytics-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: analytics-service
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: kt-event-marketing
|
||||
containers:
|
||||
- name: analytics-service
|
||||
image: acrdigitalgarage01.azurecr.io/kt-event-marketing/analytics-service:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8086
|
||||
name: http
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cm-common
|
||||
- configMapRef:
|
||||
name: cm-analytics-service
|
||||
- secretRef:
|
||||
name: secret-common
|
||||
- secretRef:
|
||||
name: secret-analytics-service
|
||||
resources:
|
||||
requests:
|
||||
cpu: "256m"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
cpu: "1024m"
|
||||
memory: "1024Mi"
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /actuator/health/liveness
|
||||
port: 8086
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
failureThreshold: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health/liveness
|
||||
port: 8086
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health/readiness
|
||||
port: 8086
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: secret-analytics-service
|
||||
namespace: kt-event-marketing
|
||||
type: Opaque
|
||||
stringData:
|
||||
DB_PASSWORD: "Hi5Jessica!"
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: analytics-service
|
||||
namespace: kt-event-marketing
|
||||
labels:
|
||||
app: analytics-service
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8086
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: analytics-service
|
||||
Reference in New Issue
Block a user