백엔드 서비스 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,47 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cm-common
|
||||
namespace: kt-event-marketing
|
||||
data:
|
||||
# Redis Configuration
|
||||
REDIS_ENABLED: "true"
|
||||
REDIS_HOST: "redis"
|
||||
REDIS_PORT: "6379"
|
||||
REDIS_TIMEOUT: "2000ms"
|
||||
REDIS_POOL_MAX: "8"
|
||||
REDIS_POOL_IDLE: "8"
|
||||
REDIS_POOL_MIN: "0"
|
||||
REDIS_POOL_WAIT: "-1ms"
|
||||
|
||||
# Kafka Configuration
|
||||
KAFKA_BOOTSTRAP_SERVERS: "20.249.182.13:9095,4.217.131.59:9095"
|
||||
EXCLUDE_KAFKA: ""
|
||||
EXCLUDE_REDIS: ""
|
||||
|
||||
# CORS Configuration
|
||||
CORS_ALLOWED_ORIGINS: "http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084,http://kt-event-marketing.20.214.196.128.nip.io"
|
||||
CORS_ALLOWED_METHODS: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
|
||||
CORS_ALLOWED_HEADERS: "*"
|
||||
CORS_ALLOW_CREDENTIALS: "true"
|
||||
CORS_MAX_AGE: "3600"
|
||||
|
||||
# JWT Configuration
|
||||
JWT_ACCESS_TOKEN_VALIDITY: "604800000"
|
||||
JWT_REFRESH_TOKEN_VALIDITY: "86400000"
|
||||
|
||||
# JPA Configuration
|
||||
DDL_AUTO: "update"
|
||||
SHOW_SQL: "false"
|
||||
JPA_DIALECT: "org.hibernate.dialect.PostgreSQLDialect"
|
||||
H2_CONSOLE_ENABLED: "false"
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL_APP: "INFO"
|
||||
LOG_LEVEL_WEB: "INFO"
|
||||
LOG_LEVEL_SQL: "WARN"
|
||||
LOG_LEVEL_SQL_TYPE: "WARN"
|
||||
LOG_LEVEL_ROOT: "INFO"
|
||||
LOG_FILE_MAX_SIZE: "10MB"
|
||||
LOG_FILE_MAX_HISTORY: "7"
|
||||
LOG_FILE_TOTAL_CAP: "100MB"
|
||||
@@ -0,0 +1,117 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: kt-event-marketing
|
||||
namespace: kt-event-marketing
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: kt-event-marketing-api.20.214.196.128.nip.io
|
||||
http:
|
||||
paths:
|
||||
# User Service
|
||||
- path: /api/v1/users
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: user-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Content Service
|
||||
- path: /api/v1/content
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: content-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Event Service
|
||||
- path: /api/v1/events
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: event-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
- path: /api/v1/jobs
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: event-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
- path: /api/v1/redis-test
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: event-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# AI Service
|
||||
- path: /api/v1/ai-service
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ai-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Participation Service
|
||||
- path: /api/v1/participations
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: participation-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
- path: /api/v1/winners
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: participation-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
- path: /debug
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: participation-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Analytics Service - Event Analytics
|
||||
- path: /api/v1/events/([0-9]+)/analytics
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: analytics-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Analytics Service - User Analytics
|
||||
- path: /api/v1/users/([0-9]+)/analytics
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: analytics-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
# Distribution Service
|
||||
- path: /distribution
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: distribution-service
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: secret-common
|
||||
namespace: kt-event-marketing
|
||||
type: Opaque
|
||||
stringData:
|
||||
# Redis Password
|
||||
REDIS_PASSWORD: "Hi5Jessica!"
|
||||
|
||||
# JWT Secret
|
||||
JWT_SECRET: "QL0czzXckz18kHnxpaTDoWFkq+3qKO7VQXeNvf2bOoU="
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: kt-event-marketing
|
||||
namespace: kt-event-marketing
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
stringData:
|
||||
.dockerconfigjson: |
|
||||
{
|
||||
"auths": {
|
||||
"acrdigitalgarage01.azurecr.io": {
|
||||
"username": "acrdigitalgarage01",
|
||||
"password": "+OY+rmOagorjWvQe/tTk6oqvnZI8SmNbY/Y2o5EDcY+ACRDCDbYk",
|
||||
"auth": "YWNyZGlnaXRhbGdhcmFnZTAxOitPWStybU9hZ29yald2UWUvdFRrNm9xdm5aSThTbU5iWS9ZMm81RURjWStBQ1JEQ0RiWWs="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user