From c66decce42b89c69a1bc252e826f0061eb54b70c Mon Sep 17 00:00:00 2001 From: cherry2250 Date: Thu, 30 Oct 2025 21:56:28 +0900 Subject: [PATCH] =?UTF-8?q?event-service=20Kafka=20Snappy=20=EC=95=95?= =?UTF-8?q?=EC=B6=95=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20=EB=B0=8F?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dockerfile에 gcompat 패키지 추가하여 Snappy 네이티브 라이브러리 지원 - application.yml에 AI Service Feign Client URL 설정 추가 - deployment.yaml 수정: * 이미지 태그를 latest에서 dev로 변경 * Health check 경로 수정 (/api/v1/events/actuator → /api/v1/actuator) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deployment/k8s/event-service/deployment.yaml | 8 ++++---- event-service/Dockerfile | 3 +++ event-service/src/main/resources/application.yml | 4 ++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/deployment/k8s/event-service/deployment.yaml b/deployment/k8s/event-service/deployment.yaml index b880ce9..1747233 100644 --- a/deployment/k8s/event-service/deployment.yaml +++ b/deployment/k8s/event-service/deployment.yaml @@ -19,7 +19,7 @@ spec: - name: kt-event-marketing containers: - name: event-service - image: acrdigitalgarage01.azurecr.io/kt-event-marketing/event-service:latest + image: acrdigitalgarage01.azurecr.io/kt-event-marketing/event-service:dev imagePullPolicy: Always ports: - containerPort: 8080 @@ -42,21 +42,21 @@ spec: memory: "1024Mi" startupProbe: httpGet: - path: /api/v1/events/actuator/health + path: /api/v1/actuator/health port: 8080 initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 30 readinessProbe: httpGet: - path: /api/v1/events/actuator/health/readiness + path: /api/v1/actuator/health/readiness port: 8080 initialDelaySeconds: 10 periodSeconds: 5 failureThreshold: 3 livenessProbe: httpGet: - path: /api/v1/events/actuator/health/liveness + path: /api/v1/actuator/health/liveness port: 8080 initialDelaySeconds: 30 periodSeconds: 10 diff --git a/event-service/Dockerfile b/event-service/Dockerfile index c4147a4..cc63407 100644 --- a/event-service/Dockerfile +++ b/event-service/Dockerfile @@ -7,6 +7,9 @@ RUN java -Djarmode=layertools -jar app.jar extract FROM eclipse-temurin:21-jre-alpine WORKDIR /app +# Install glibc compatibility for Snappy native library +RUN apk add --no-cache gcompat + # Create non-root user RUN addgroup -S spring && adduser -S spring -G spring USER spring:spring diff --git a/event-service/src/main/resources/application.yml b/event-service/src/main/resources/application.yml index c4610aa..c251424 100644 --- a/event-service/src/main/resources/application.yml +++ b/event-service/src/main/resources/application.yml @@ -141,6 +141,10 @@ feign: distribution-service: url: ${DISTRIBUTION_SERVICE_URL:http://localhost:8085} + # AI Service Client + ai-service: + url: ${AI_SERVICE_URL:http://ai-service/api/v1/ai} + # Application Configuration app: kafka: