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: