From e60a50aaacacc73d58b77dcc65140019a3672f9f Mon Sep 17 00:00:00 2001 From: John Hanzu Kim Date: Tue, 17 Jun 2025 13:02:47 +0900 Subject: [PATCH] Update deploy.yaml.template --- .../deployment/deploy.yaml.template | 85 ++++++++++++++----- 1 file changed, 66 insertions(+), 19 deletions(-) diff --git a/smarketing-java/deployment/deploy.yaml.template b/smarketing-java/deployment/deploy.yaml.template index d14f15e..92e1068 100644 --- a/smarketing-java/deployment/deploy.yaml.template +++ b/smarketing-java/deployment/deploy.yaml.template @@ -8,10 +8,16 @@ data: ALLOWED_ORIGINS: ${allowed_origins} JPA_DDL_AUTO: update JPA_SHOW_SQL: 'true' - # ๐Ÿ”ง Actuator ๋ณด์•ˆ ์„ค์ • ์ถ”๊ฐ€ - MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: health,info + # ๐Ÿ”ง ๊ฐ•ํ™”๋œ Actuator ์„ค์ • + MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: '*' MANAGEMENT_ENDPOINT_HEALTH_SHOW_DETAILS: always - MANAGEMENT_SECURITY_ENABLED: 'false' + MANAGEMENT_ENDPOINT_HEALTH_ENABLED: 'true' + MANAGEMENT_ENDPOINTS_WEB_BASE_PATH: /actuator + MANAGEMENT_SERVER_PORT: '8080' + # Spring Security ๋น„ํ™œ์„ฑํ™” (Actuator์šฉ) + SPRING_AUTOCONFIGURE_EXCLUDE: org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration + # ๋˜๋Š” Management port๋ฅผ main port์™€ ๋™์ผํ•˜๊ฒŒ + MANAGEMENT_SERVER_PORT: '' --- apiVersion: v1 @@ -171,18 +177,29 @@ spec: periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 10 + # ๐Ÿ”ง ๊ฐœ์„ ๋œ Health Check ์„ค์ • livenessProbe: httpGet: path: /actuator/health port: 8081 - initialDelaySeconds: 60 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 120 # 2๋ถ„์œผ๋กœ ์ฆ๊ฐ€ periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 3 readinessProbe: httpGet: - path: /actuator/health + path: /actuator/health/readiness port: 8081 - initialDelaySeconds: 30 - periodSeconds: 5 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 60 # 1๋ถ„์œผ๋กœ ์ฆ๊ฐ€ + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 --- apiVersion: apps/v1 @@ -240,14 +257,24 @@ spec: httpGet: path: /actuator/health port: 8082 - initialDelaySeconds: 60 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 120 periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 3 readinessProbe: httpGet: - path: /actuator/health + path: /actuator/health/readiness port: 8082 - initialDelaySeconds: 30 - periodSeconds: 5 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 --- apiVersion: apps/v1 @@ -305,14 +332,24 @@ spec: httpGet: path: /actuator/health port: 8083 - initialDelaySeconds: 60 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 120 periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 3 readinessProbe: httpGet: - path: /actuator/health + path: /actuator/health/readiness port: 8083 - initialDelaySeconds: 30 - periodSeconds: 5 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 --- apiVersion: apps/v1 @@ -370,14 +407,24 @@ spec: httpGet: path: /actuator/health port: 8084 - initialDelaySeconds: 60 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 120 periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 3 readinessProbe: httpGet: - path: /actuator/health + path: /actuator/health/readiness port: 8084 - initialDelaySeconds: 30 - periodSeconds: 5 + httpHeaders: + - name: Accept + value: application/json + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 --- # Services